From e813ffd102aacf5f9943c127ef53114a2f5bfca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 11 Nov 2011 14:45:16 +0100 Subject: [PATCH] Only check for getters, not setters when deciding wether an object is a simple value or an accesor description. Workaround for a bug where Point is interpreted as accessor due to its #set(x, y) method. --- lib/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootstrap.js b/lib/bootstrap.js index 2738ca75..89b6be14 100644 --- a/lib/bootstrap.js +++ b/lib/bootstrap.js @@ -168,7 +168,7 @@ var Base = new function() { // Bootstrap scope beans.push([ bean[3].toLowerCase() + bean[4], bean[2] ]); } // No need to look up getter if this is a function already. - if (!res || func || !res.get && !res.set) + if (!res || func || !res.get) res = { value: res, writable: true }; // Only set/change configurable and enumerable if this field is // configurable