Closed Bug 772691 Opened 13 years ago Closed 13 years ago

ban xml in function defaults

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: Benjamin, Assigned: Benjamin)

Details

Attachments

(1 file)

Even after bug 769072, you can put XML in function defaults like: function f(a=<x/>) { "use strict"; } This is because XML doesn't report strict errors. Let's just completely ban XML in defaults.
Not exactly straight forward, but I think we're escaping E4X with only a few scratches.
Assignee: general → bpeterson
Attachment #640865 - Flags: review?(n.nethercote)
Comment on attachment 640865 [details] [diff] [review] ban XML in defaults Review of attachment 640865 [details] [diff] [review]: ----------------------------------------------------------------- The best thing about this patch is that it will be removed in the not-too-distant future, when e4x is removed :)
Attachment #640865 - Flags: review?(n.nethercote) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: