Closed
Bug 1240792
Opened 9 years ago
Closed 9 years ago
Add a test for assigning to primitives in strict mode
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla46
Tracking | Status | |
---|---|---|
firefox46 | --- | fixed |
People
(Reporter: evilpie, Assigned: evilpie)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
898 bytes,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
In strict mode code like this throws:
"use strict";
"abc".hey = 1;
However I believe we currently don't test this.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8709635 -
Flags: review?(jorendorff)
Comment 2•9 years ago
|
||
Comment on attachment 8709635 [details] [diff] [review]
Test that assignment to primitives throws in strict mode
Review of attachment 8709635 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
But what is up with that error message?
typein:1:15 TypeError: can't assign to properties of (new Boolean(true)): not an object
WAT!
Attachment #8709635 -
Flags: review?(jorendorff) → review+
Comment 4•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in
before you can comment on or make changes to this bug.
Description
•