Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 764eed5

Browse files
committed
fix jsb debugger bug
1 parent bd1f80e commit 764eed5

File tree

1 file changed

+3
-3
lines changed
  • frameworks/js-bindings/bindings/script/debugger/actors

1 file changed

+3
-3
lines changed

frameworks/js-bindings/bindings/script/debugger/actors/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2679,9 +2679,9 @@ ObjectActor.prototype = {
26792679
"type": "object",
26802680
"class": this.obj.class,
26812681
"actor": this.actorID,
2682-
"extensible": this.obj.isExtensible(),
2683-
"frozen": this.obj.isFrozen(),
2684-
"sealed": this.obj.isSealed()
2682+
"extensible": this.obj.isExtensible && typeof this.obj.isExtensible == 'function' ? this.obj.isExtensible() : true,
2683+
"frozen": this.obj.isFrozen && typeof this.obj.isFrozen == 'function' ? this.obj.isFrozen() : false,
2684+
"sealed": this.obj.isSealed && typeof this.obj.isSealed == 'function' ? this.obj.isSealed() : false
26852685
};
26862686

26872687
// Add additional properties for functions.

0 commit comments

Comments
 (0)