WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
163574
Our ToThis semantics look to be affected by whether or not a local variable is captured
https://bugs.webkit.org/show_bug.cgi?id=163574
Summary
Our ToThis semantics look to be affected by whether or not a local variable i...
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
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug