Bug 163574

Summary: Our ToThis semantics look to be affected by whether or not a local variable is captured
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: benjamin, fpizlo, ggaren, gskachkov, jfbastien, keith_miller, mark.lam, msaboff, oliver, ticaiolima, ysuzuki
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Saam Barati
Reported 2016-10-17 17:33:23 PDT
This doesn't seem spec compliant to me: ``` function foo() { function bar() { return x; } var x = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").get; return x(); } foo() // [object Object] ``` ``` function foo() { var x = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").get; return x(); } foo() // Exception: TypeError: Can't convert undefined or null to object ```
Attachments
Note You need to log in before you can comment on or make changes to this bug.