Ignore:
Timestamp:
Mar 1, 2016, 3:51:53 PM (9 years ago)
Author:
[email protected]
Message:

[ES6] Implement Proxy.IsExtensible
https://bugs.webkit.org/show_bug.cgi?id=154872

Reviewed by Oliver Hunt.

This patch is a direct implementation of Proxy.IsExtensible with respect to section 9.5.3
of the ECMAScript 6 spec.
https://tc39.github.io/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-isextensible

  • runtime/ProxyObject.cpp:

(JSC::ProxyObject::preventExtensions):
(JSC::ProxyObject::performIsExtensible):
(JSC::ProxyObject::isExtensible):
(JSC::ProxyObject::visitChildren):

  • runtime/ProxyObject.h:
  • tests/es6.yaml:
  • tests/stress/proxy-is-extensible.js: Added.

(assert):
(throw.new.Error.let.handler.get isExtensible):
(throw.new.Error):
(assert.let.handler.isExtensible):
(assert.):
(let.handler.isExtensible):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/ProxyObject.h

    r197418 r197420  
    7171    static bool deletePropertyByIndex(JSCell*, ExecState*, unsigned propertyName);
    7272    static bool preventExtensions(JSObject*, ExecState*);
     73    static bool isExtensible(JSObject*, ExecState*);
    7374    static void visitChildren(JSCell*, SlotVisitor&);
    7475
     
    8182    void performPut(ExecState*, JSValue putValue, JSValue thisValue, PropertyName, PerformDefaultPutFunction);
    8283    bool performPreventExtensions(ExecState*);
     84    bool performIsExtensible(ExecState*);
    8385
    8486    WriteBarrier<JSObject> m_target;
Note: See TracChangeset for help on using the changeset viewer.