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: | JavaScriptCore | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |