Changeset 246333 in webkit
- Timestamp:
- Jun 11, 2019 2:42:41 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r246332 r246333 1 2019-06-11 Alexey Shvayka <shvaikalesh@gmail.com> 2 3 Error message for non-callable Proxy `construct` trap is misleading 4 https://bugs.webkit.org/show_bug.cgi?id=198637 5 6 Reviewed by Saam Barati. 7 8 * stress/proxy-construct.js: 9 1 10 2019-06-10 Tadeu Zagallo <tzagallo@apple.com> 2 11 -
trunk/JSTests/stress/proxy-construct.js
r198813 r246333 16 16 } catch(e) { 17 17 threw = true; 18 assert(e.toString() === "TypeError: 'construct' property of a Proxy's handler should be c onstructible");18 assert(e.toString() === "TypeError: 'construct' property of a Proxy's handler should be callable"); 19 19 } 20 20 assert(threw); … … 34 34 } catch(e) { 35 35 threw = true; 36 assert(e.toString() === "TypeError: 'construct' property of a Proxy's handler should be c onstructible");36 assert(e.toString() === "TypeError: 'construct' property of a Proxy's handler should be callable"); 37 37 } 38 38 assert(threw); -
trunk/Source/JavaScriptCore/ChangeLog
r246332 r246333 1 2019-06-11 Alexey Shvayka <shvaikalesh@gmail.com> 2 3 Error message for non-callable Proxy `construct` trap is misleading 4 https://bugs.webkit.org/show_bug.cgi?id=198637 5 6 Reviewed by Saam Barati. 7 8 Just like other traps, Proxy `construct` trap is invoked with [[Call]], not [[Construct]]. 9 10 * runtime/ProxyObject.cpp: 11 (JSC::performProxyConstruct): Tweak error message. 12 1 13 2019-06-10 Tadeu Zagallo <tzagallo@apple.com> 2 14 -
trunk/Source/JavaScriptCore/runtime/ProxyObject.cpp
r245675 r246333 572 572 CallData callData; 573 573 CallType callType; 574 JSValue constructMethod = handler->getMethod(exec, callData, callType, makeIdentifier(vm, "construct"), "'construct' property of a Proxy's handler should be c onstructible"_s);574 JSValue constructMethod = handler->getMethod(exec, callData, callType, makeIdentifier(vm, "construct"), "'construct' property of a Proxy's handler should be callable"_s); 575 575 RETURN_IF_EXCEPTION(scope, encodedJSValue()); 576 576 JSObject* target = proxy->target();
Note: See TracChangeset
for help on using the changeset viewer.