Closed Bug 689285 Opened 13 years ago Closed 13 years ago

[[ThrowTypeError]] should not be extensible

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla9

People

(Reporter: Waldo, Assigned: Waldo)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
Don't ask me how I missed this when implementing [[ThrowTypeError]]; I have no idea.
Attachment #562529 - Flags: review?(luke)
Comment on attachment 562529 [details] [diff] [review] Patch Review of attachment 562529 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/vm/GlobalObject.cpp @@ +226,2 @@ > JSFunction *throwTypeError = js_NewFunction(cx, NULL, ThrowTypeError, 0, 0, this, NULL); > + if (!throwTypeError || !throwTypeError->preventExtensions(cx, &ids)) Maybe I'm a nazi, but I'd rather have the AutiIdVector decl after the null check for throwTypeError (and named 'noIds' rather than 'ids').
Attachment #562529 - Flags: review?(luke) → review+
http://hg.mozilla.org/integration/mozilla-inbound/rev/ed95d68c0f85 <insert some completely outrageous comment about nazis getting results, for some definition of results>
Target Milestone: --- → mozilla9
You know who really got results? Commie-nazis! http://www.youtube.com/watch?v=_g6ctonQoGA (Although I think after that, McBain kills them with his bare hands.)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: