Bug 56492
Summary: | There should only be one [[ThrowTypeError]] per global object | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jeff Walden (remove +bwo to email) <jwalden+bwo> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | barraclough, oliver |
Priority: | P2 | Keywords: | ES5 |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | javascript: alert(Object.getOwnPropertyDescriptor(function(){'use strict'}, "caller").get === Object.getOwnPropertyDescriptor(function(){'use strict';}, "arguments").set ? "PASS" : "FAIL") |
Jeff Walden (remove +bwo to email)
Not multiple such functions, created anew every time one is implicitly requested.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Oliver Hunt
How is this determined? You get one per object, i don't see how the spec defines a single instance of that function shared everywhere.
That said i am annoyed that the spec require strict mode functions to have this property. It means that in strict mode we have to instantiate this property, rather than simply not having it present.
Jeff Walden (remove +bwo to email)
See 13.2 step 19 and 13.2.3.
Gavin Barraclough
This is fixed in ToT, I think by the bug I've duped to.
cheers!, G.
*** This bug has been marked as a duplicate of bug 63398 ***