Bug 165205 - Proxy is not allowed in the global prototype chain.
Summary: Proxy is not allowed in the global prototype chain.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Lam
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-11-30 11:01 PST by Mark Lam
Modified: 2016-11-30 13:15 PST (History)
6 users (show)

See Also:


Attachments
proposed patch. (4.34 KB, patch)
2016-11-30 11:10 PST, Mark Lam
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lam 2016-11-30 11:01:01 PST
patch coming.

<rdar://problem/28654967>
Comment 1 Mark Lam 2016-11-30 11:10:57 PST
Created attachment 295734 [details]
proposed patch.
Comment 2 Geoffrey Garen 2016-11-30 12:13:31 PST
Comment on attachment 295734 [details]
proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=295734&action=review

r=me

> LayoutTests/js/dom/proxy-is-not-allowed-in-global-prototype-chain.html:12
> +    if (e == "TypeError: Proxy is not allowed in the global prototype chain.")
> +        log("PASS: onerror saw " + e);
> +    else
> +        log("FAIL: onerror saw unexpected exception " + e);
> +}

In tests like this, I think it's best juts to log the error message, without judging whether it's a pass or a fail. Our test infrastructure will flag it for review if the result ever changes -- but we don't know in advance that any change to error message text is definitely bad.
Comment 3 Mark Lam 2016-11-30 12:14:53 PST
Comment on attachment 295734 [details]
proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=295734&action=review

>> LayoutTests/js/dom/proxy-is-not-allowed-in-global-prototype-chain.html:12
>> +}
> 
> In tests like this, I think it's best juts to log the error message, without judging whether it's a pass or a fail. Our test infrastructure will flag it for review if the result ever changes -- but we don't know in advance that any change to error message text is definitely bad.

OK, I'll change it accordingly.
Comment 4 Mark Lam 2016-11-30 13:15:05 PST
Thanks for the review.  Landed in r209149: <http://trac.webkit.org/r209149>.