ASSERTION FAILED: "!scope.exception()" with Object.isSealed/isFrozen and uninitialize...
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Feb 2017 09:07:41 +0000 (09:07 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Feb 2017 09:07:41 +0000 (09:07 +0000)
commit0f6a8a076c4ae342c6cb3a0af7682c477f73d36f
tree76bc3b69a96f7088c7d12a8e42d1bec0eb331c20
parent35fd98fb3b3925e98a4e8afd47dc1ae3ef798403
ASSERTION FAILED: "!scope.exception()" with Object.isSealed/isFrozen and uninitialized module bindings
https://bugs.webkit.org/show_bug.cgi?id=168605

Reviewed by Saam Barati.

JSTests:

* modules/module-namespace-is-frozen.js: Added.
(from.string_appeared_here.shouldThrow):
(export.b):
* modules/module-namespace-is-sealed.js: Added.
(from.string_appeared_here.shouldThrow):
(export.b):

Source/JavaScriptCore:

We should check exception state after calling getOwnPropertyDescriptor() since it can throw errors.

* runtime/ObjectConstructor.cpp:
(JSC::objectConstructorIsSealed):
(JSC::objectConstructorIsFrozen):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/modules/module-namespace-is-frozen.js [new file with mode: 0644]
JSTests/modules/module-namespace-is-sealed.js [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/ObjectConstructor.cpp