⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267495 in webkit


Ignore:
Timestamp:
Sep 23, 2020, 12:35:19 PM (6 years ago)
Author:
Tadeu Zagallo
Message:

Missing scope release in JSDOMBuiltinConstructorBase
https://bugs.webkit.org/show_bug.cgi?id=216851
<rdar://problem/69144642>

Reviewed by Yusuke Suzuki.

Source/WebCore:

In JSDOMBuiltinConstructorBase::callFunctionWithCurrentArguments, we should release the
ThrowScope before calling into JavaScript since we don't intend to handle the exception.

Test: js/transform-stream.html

  • bindings/js/JSDOMBuiltinConstructorBase.cpp:

(WebCore::JSDOMBuiltinConstructorBase::callFunctionWithCurrentArguments):

LayoutTests:

  • js/script-tests/transform-stream.js: Added.
  • js/transform-stream-expected.txt: Added.
  • js/transform-stream.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r267486 r267495  
     12020-09-23  Tadeu Zagallo  <tzagallo@apple.com>
     2
     3        Missing scope release in JSDOMBuiltinConstructorBase
     4        https://bugs.webkit.org/show_bug.cgi?id=216851
     5        <rdar://problem/69144642>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        * js/script-tests/transform-stream.js: Added.
     10        * js/transform-stream-expected.txt: Added.
     11        * js/transform-stream.html: Added.
     12
    1132020-09-23  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r267494 r267495  
     12020-09-23  Tadeu Zagallo  <tzagallo@apple.com>
     2
     3        Missing scope release in JSDOMBuiltinConstructorBase
     4        https://bugs.webkit.org/show_bug.cgi?id=216851
     5        <rdar://problem/69144642>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        In JSDOMBuiltinConstructorBase::callFunctionWithCurrentArguments, we should release the
     10        ThrowScope before calling into JavaScript since we don't intend to handle the exception.
     11
     12        Test: js/transform-stream.html
     13
     14        * bindings/js/JSDOMBuiltinConstructorBase.cpp:
     15        (WebCore::JSDOMBuiltinConstructorBase::callFunctionWithCurrentArguments):
     16
    1172020-09-23  Zalan Bujtas  <zalan@apple.com>
    218
  • trunk/Source/WebCore/bindings/js/JSDOMBuiltinConstructorBase.cpp

    r260744 r267495  
    4343        return;
    4444    }
     45    scope.release();
    4546    JSC::call(&lexicalGlobalObject, &function, callData, &thisObject, arguments);
    4647}
Note: See TracChangeset for help on using the changeset viewer.