[ESNext][BigInt] Breking tests on Debug build and 32-bits due to missing Exception...
authorticaiolima@gmail.com <ticaiolima@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Dec 2017 18:20:53 +0000 (18:20 +0000)
committerticaiolima@gmail.com <ticaiolima@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Dec 2017 18:20:53 +0000 (18:20 +0000)
commitcf3407ad5aa45811e6ed15bbd749c950c4209356
treecb0461efcb4ab5412705c78496b9e1727ab8a1f5
parenta9d8f7bb3f22bb09c26094f21c370f81fbccd234
[ESNext][BigInt] Breking tests on Debug build and 32-bits due to missing Exception check
https://bugs.webkit.org/show_bug.cgi?id=180746

Reviewed by Saam Barati.

We have some uncatched exceptions that could happen due to OOM into
JSBigInt::allocateFor and JSBigInt::toStringGeneric. This patching is
catching such exceptions properly.

* runtime/JSBigInt.cpp:
(JSC::JSBigInt::allocateFor):
(JSC::JSBigInt::parseInt):
* runtime/JSCJSValue.cpp:
(JSC::JSValue::toStringSlowCase const):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/JSBigInt.cpp
Source/JavaScriptCore/runtime/JSCJSValue.cpp