Closed Bug 773153 Opened 12 years ago Closed 12 years ago

With options('allow_xml'), the statement "" < ""; is rejected.

Categories

(Core :: JavaScript Engine, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: regression, testcase)

Attachments

(1 file)

js> void options('allow_xml')

js> ('' < '')
false
js> '' < ''
typein:2: SyntaxError: missing ; before statement:
typein:2: '' < ''
typein:2: ...^

jsfunfuzz noticed this because the decompiler turns something that compiles into something that doesn't:

js> (function() { ('' < '') })
(function () {"" < "";})
js> (function () {"" < "";})
typein:5: SyntaxError: missing ; before statement:
typein:5: (function () {"" < "";})
typein:5: .................^

The first bad revision is:
changeset:   418ad69cfe52
user:        Benjamin Peterson
date:        Mon Jul 09 23:43:06 2012 -0700
summary:     Bug 769072: retroactively apply strict mode to defaults. r=njn
Attached patch fixSplinter Review
Curse you, xml...
Attachment #641370 - Flags: review?(n.nethercote)
Comment on attachment 641370 [details] [diff] [review]
fix

Review of attachment 641370 [details] [diff] [review]:
-----------------------------------------------------------------

e4x cannot die quickly enough.
Attachment #641370 - Flags: review?(n.nethercote) → review+
Keywords: checkin-needed
Thanks for the quick fix & review!

http://hg.mozilla.org/integration/mozilla-inbound/rev/341214c1b964
Keywords: checkin-needed
Target Milestone: --- → mozilla16
https://hg.mozilla.org/mozilla-central/rev/341214c1b964
Status: NEW → RESOLVED
Closed: 12 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: