From 0d84cd829a66e3e6d9a15fa5eb81c1d0262f11aa Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 20 Dec 2010 10:04:11 -0500 Subject: [PATCH] util.defineSecureProp was failing in browsers that do not support Object.defineProperty() - This is untested! Test needed. --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 5d4edfe..265d545 100644 --- a/lib/util.js +++ b/lib/util.js @@ -69,7 +69,7 @@ exports.defineSecureProp = function( obj, prop, value ) { if ( Object.defineProperty === undefined ) { - func[ prop ] = value; + obj[ prop ] = value; } else {