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

Changeset 244069 in webkit


Ignore:
Timestamp:
Apr 9, 2019, 12:54:18 AM (7 years ago)
Author:
Tadeu Zagallo
Message:
ASSERTION FAILED: !scope.exception()
!hasProperty in JSObject::get

https://bugs.webkit.org/show_bug.cgi?id=196708
<rdar://problem/49556803>

Reviewed by Yusuke Suzuki.

JSTests:

  • stress/proxy-getter-stack-overflow.js: Added.

(const.handler.get target):
(const.handler.has):
(try.with):
(catch):

Source/JavaScriptCore:

operationPutToScope needs to return early if an exception is thrown while
checking if hasProperty.

  • jit/JITOperations.cpp:
Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r244067 r244069  
     12019-04-09  Tadeu Zagallo  <tzagallo@apple.com>
     2
     3        ASSERTION FAILED: !scope.exception() || !hasProperty in JSObject::get
     4        https://bugs.webkit.org/show_bug.cgi?id=196708
     5        <rdar://problem/49556803>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        * stress/proxy-getter-stack-overflow.js: Added.
     10        (const.handler.get target):
     11        (const.handler.has):
     12        (try.with):
     13        (catch):
     14
    1152019-04-08  Yusuke Suzuki  <ysuzuki@apple.com>
    216
  • trunk/Source/JavaScriptCore/ChangeLog

    r244067 r244069  
     12019-04-09  Tadeu Zagallo  <tzagallo@apple.com>
     2
     3        ASSERTION FAILED: !scope.exception() || !hasProperty in JSObject::get
     4        https://bugs.webkit.org/show_bug.cgi?id=196708
     5        <rdar://problem/49556803>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        `operationPutToScope` needs to return early if an exception is thrown while
     10        checking if `hasProperty`.
     11
     12        * jit/JITOperations.cpp:
     13
    1142019-04-08  Yusuke Suzuki  <ysuzuki@apple.com>
    215
  • trunk/Source/JavaScriptCore/jit/JITOperations.cpp

    r243886 r244069  
    23732373
    23742374    bool hasProperty = scope->hasProperty(exec, ident);
    2375     EXCEPTION_ASSERT(!throwScope.exception() || !hasProperty);
     2375    RETURN_IF_EXCEPTION(throwScope, void());
    23762376    if (hasProperty
    23772377        && scope->isGlobalLexicalEnvironment()
Note: See TracChangeset for help on using the changeset viewer.