Ignore:
Timestamp:
Aug 31, 2017, 11:40:55 PM (8 years ago)
Author:
Yusuke Suzuki
Message:

[JSC] Fix "name" and "length" of Proxy revoke function
https://bugs.webkit.org/show_bug.cgi?id=176155

Reviewed by Mark Lam.

JSTests:

  • test262.yaml:

Source/JavaScriptCore:

ProxyRevoke's length should be configurable. And it does not have
its own name. We add NameVisibility enum to InternalFunction to
control visibility of the name.

  • runtime/InternalFunction.cpp:

(JSC::InternalFunction::finishCreation):

  • runtime/InternalFunction.h:
  • runtime/ProxyRevoke.cpp:

(JSC::ProxyRevoke::finishCreation):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/ProxyRevoke.cpp

    r217108 r221475  
    5050void ProxyRevoke::finishCreation(VM& vm, const char* name, ProxyObject* proxy)
    5151{
    52     Base::finishCreation(vm, String(name));
     52    Base::finishCreation(vm, String(name), NameVisibility::Anonymous);
    5353    m_proxy.set(vm, this, proxy);
    5454
    55     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
     55    putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontEnum);
    5656}
    5757
Note: See TracChangeset for help on using the changeset viewer.