[Webkit-unassigned] [Bug 169040] Class Proxy can't be extended

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 17 14:51:19 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=169040

--- Comment #9 from Saam Barati <sbarati at apple.com> ---
Hmm, I wonder if this is a private name. ProxyObject has this code:


```
static JSValue performProxyGet(ExecState* exec, ProxyObject* proxyObject, JSValue receiver, PropertyName propertyName)
{
    VM& vm = exec->vm();
    auto scope = DECLARE_THROW_SCOPE(vm);
    if (UNLIKELY(!vm.isSafeToRecurseSoft())) {
        throwStackOverflowError(exec, scope);
        return { };
    }

    JSObject* target = proxyObject->target();

    auto performDefaultGet = [&] {
        return target->get(exec, propertyName);
    };

    if (vm.propertyNames->isPrivateName(Identifier::fromUid(&vm, propertyName.uid()))) {
        scope.release();
        return performDefaultGet();
    }
...
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170417/bb5e97a9/attachment.html>


More information about the webkit-unassigned mailing list