Closed Bug 21618 Opened 25 years ago Closed 25 years ago

JS "var" incompatibility due to ECMA changes

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: brendan, Assigned: brendan)

References

()

Details

(Keywords: js1.5)

Attachments

(1 file)

All scripts in(cluded in) a page should be treated as one JS program under ECMA
Edition 3.  I busted that recently making ECMA changes for the single script tag
case.  Will fix ASAP.

/be
Status: NEW → ASSIGNED
Target Milestone: M13
Priority: P3 → P1
Attached patch proposed fixSplinter Review
Keywords: js1.5
Need code reviews ASAP.  Thanks,

/be
Did you get a review on this? The attachment is missing the definition for
JS_ReportErrorFlagsAndNumber etc so I couldn't apply it.
D'oh -- stand by, I'll make a branch and check in all my changes.

/be
Fix is in JS15_20000111_BRANCH.  Feedback welcome.

/be
testcase mentioned in url passes on branch.
... with one exception (pardon the pun):

JavaScript Error: redeclaration of var ver11
URL: file:///home/rginda/src/HTML/moztests/random.html
LineNo: 16

This is with the following in all.js:
pref("javascript.options.strict",           false);
pref("javascript.options.error_on_warn",    false);

(although I assume they're off by default.)

The error does not stop js execution.
Oops, spurious warning -- fixed in the JS15_20000111_BRANCH-top version of
jsinterp.c.

Rob, how does the branch look otherwise from your testsuites' p.o.v.?

/be
Fix landed from the JS15_20000111_BRANCH.

/be
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
So I'm closing, already!

/be
*** Bug 22807 has been marked as a duplicate of this bug. ***
Marking Verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: