Bug 56492

Summary: There should only be one [[ThrowTypeError]] per global object
Product: WebKit Reporter: Jeff Walden (remove +bwo to email) <jwalden+bwo>
Component: JavaScriptCoreAssignee: 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)
Reported 2011-03-16 15:09:11 PDT
Not multiple such functions, created anew every time one is implicitly requested.
Attachments
Oliver Hunt
Comment 1 2011-03-17 10:53:29 PDT
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)
Comment 2 2011-03-17 13:54:54 PDT
See 13.2 step 19 and 13.2.3.
Gavin Barraclough
Comment 3 2012-03-26 13:20:06 PDT
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 ***
Note You need to log in before you can comment on or make changes to this bug.