Bug 978235 - ES6 Proxies: Implement [[IsExtensible]] trap. (r=jorendorff, terrence over IRC)

This commit is contained in:
Eric Faust
2014-04-14 15:52:26 -07:00
parent 22262c4564
commit 72f841bcc8
8 changed files with 151 additions and 8 deletions

View File

@@ -439,6 +439,8 @@ JavaScriptChild::AnswerIsExtensible(const ObjectId &objId, ReturnStatus *rs, boo
if (!obj)
return false;
JSAutoCompartment comp(cx, obj);
bool extensible;
if (!JS_IsExtensible(cx, obj, &extensible))
return fail(cx, rs);