From 746a9ee53d85701514a79b53224fd9448064b52c Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 14 Nov 2010 20:31:23 -0500 Subject: [PATCH] Class.isAbstract() now defined using define_secure_prop --- lib/class.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/class.js b/lib/class.js index f655afe..098dfd5 100644 --- a/lib/class.js +++ b/lib/class.js @@ -321,10 +321,10 @@ function attach_abstract( func, methods ) * * @return {Boolean} true if class is abstract, otherwise false */ - func.isAbstract = function() + define_secure_prop( func, 'isAbstract', function() { return is_abstract; - }; + }); // attach the list of abstract methods to the class (make the copy of the // methods to ensure that they won't be gc'd or later modified and screw up