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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: evilpie, Assigned: evilpie)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In strict mode code like this throws: "use strict"; "abc".hey = 1; However I believe we currently don't test this.
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+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: