[ES6] Implement Reflect.isExtensible
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 26 Jul 2015 21:17:32 +0000 (21:17 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 26 Jul 2015 21:17:32 +0000 (21:17 +0000)
commitc83d18e675bc9f19fe106140de3be5e137c36de3
tree1ff09e67db05e5e175fe5ce6415d950bee0fdebb
parentfac9743145ea1edb5bc388fce28fc1904328f3c6
[ES6] Implement Reflect.isExtensible
https://bugs.webkit.org/show_bug.cgi?id=147308

Reviewed by Sam Weinig.

This patch implements Reflect.isExtensible.
It is similar to Object.isExtensible.
The difference is that it raises an error if the first argument is not an object.

* runtime/ReflectObject.cpp:
(JSC::reflectObjectIsExtensible):
* tests/stress/reflect-is-extensible.js: Added.
(shouldBe):
(shouldThrow):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187410 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/ReflectObject.cpp
Source/JavaScriptCore/tests/stress/reflect-is-extensible.js [new file with mode: 0644]