Closed
Bug 689285
Opened 13 years ago
Closed 13 years ago
[[ThrowTypeError]] should not be extensible
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla9
People
(Reporter: Waldo, Assigned: Waldo)
Details
Attachments
(1 file)
1.66 KB,
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
Don't ask me how I missed this when implementing [[ThrowTypeError]]; I have no idea.
Attachment #562529 -
Flags: review?(luke)
Comment 1•13 years ago
|
||
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+
Assignee | ||
Comment 2•13 years ago
|
||
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.)
Comment 4•13 years ago
|
||
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.
Description
•