Changeset 214767 in webkit


Ignore:
Timestamp:
Apr 3, 2017 4:07:46 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r214143 - import(arg) crashes when ToString(arg) throws
https://bugs.webkit.org/show_bug.cgi?id=169778

Reviewed by Saam Barati.

JSTests:

  • stress/import-reject-with-exception.js: Added.

(shouldBe):
(let.x.get toString):

Source/JavaScriptCore:

JSPromiseDeferred should not be rejected with Exception*.

  • runtime/JSGlobalObjectFunctions.cpp:

(JSC::globalFuncImportModule):

Location:
releases/WebKitGTK/webkit-2.16
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.16/JSTests/ChangeLog

    r214753 r214767  
     12017-03-19  Yusuke Suzuki  <utatane.tea@gmail.com>
     2
     3        import(arg) crashes when ToString(arg) throws
     4        https://bugs.webkit.org/show_bug.cgi?id=169778
     5
     6        Reviewed by Saam Barati.
     7
     8        * stress/import-reject-with-exception.js: Added.
     9        (shouldBe):
     10        (let.x.get toString):
     11
    1122017-03-15  Yusuke Suzuki  <utatane.tea@gmail.com>
    213
  • releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/ChangeLog

    r214762 r214767  
     12017-03-19  Yusuke Suzuki  <utatane.tea@gmail.com>
     2
     3        import(arg) crashes when ToString(arg) throws
     4        https://bugs.webkit.org/show_bug.cgi?id=169778
     5
     6        Reviewed by Saam Barati.
     7
     8        JSPromiseDeferred should not be rejected with Exception*.
     9
     10        * runtime/JSGlobalObjectFunctions.cpp:
     11        (JSC::globalFuncImportModule):
     12
    1132017-03-16  Mark Lam  <mark.lam@apple.com>
    214
  • releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp

    r212438 r214767  
    949949    if (Exception* exception = catchScope.exception()) {
    950950        catchScope.clearException();
    951         promise->reject(exec, exception);
     951        promise->reject(exec, exception->value());
    952952        return JSValue::encode(promise->promise());
    953953    }
     
    956956    if (Exception* exception = catchScope.exception()) {
    957957        catchScope.clearException();
    958         promise->reject(exec, exception);
     958        promise->reject(exec, exception->value());
    959959        return JSValue::encode(promise->promise());
    960960    }
Note: See TracChangeset for help on using the changeset viewer.