From be923b59010a3a4c787c2b7f8be696c27747e050 Mon Sep 17 00:00:00 2001 From: Jialong Zhai Date: Thu, 7 May 2015 18:24:30 +0800 Subject: [PATCH] fix jsb debugger bug --- .../scripting/js-bindings/script/debugger/actors/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/scripting/js-bindings/script/debugger/actors/script.js b/cocos/scripting/js-bindings/script/debugger/actors/script.js index 871a76d56e..853fc1ce7a 100644 --- a/cocos/scripting/js-bindings/script/debugger/actors/script.js +++ b/cocos/scripting/js-bindings/script/debugger/actors/script.js @@ -2679,9 +2679,9 @@ ObjectActor.prototype = { "type": "object", "class": this.obj.class, "actor": this.actorID, - "extensible": this.obj.isExtensible(), - "frozen": this.obj.isFrozen(), - "sealed": this.obj.isSealed() + "extensible": this.obj.isExtensible && typeof this.obj.isExtensible == 'function' ? this.obj.isExtensible() : true, + "frozen": this.obj.isFrozen && typeof this.obj.isFrozen == 'function' ? this.obj.isFrozen() : false, + "sealed": this.obj.isSealed && typeof this.obj.isSealed == 'function' ? this.obj.isSealed() : false }; // Add additional properties for functions.