Closed Bug 676823 Opened 13 years ago Closed 13 years ago

TM: Different errors for undefined variable with/without -a

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 622271

People

(Reporter: decoder, Unassigned)

Details

(Keywords: testcase, Whiteboard: js-triage-needed)

The following test throws different error messages when run with options -j -m vs. -j -m -a (tested on mozilla-inbound revision 1d1c771a3aba):

{
  summary += '{'
  function f() {
    print( test < 16 );
  }
}

Note that the surrounding { } are necessary here. The errors I get are:

With -j -m: min.js:2: ReferenceError: reference to undefined property "summary"
With -j -m -a: min.js:2: ReferenceError: summary is not defined

I don't know if this is a bug or not, and which error message is the better one (I assume the second one), but for differential testing (i.e. comparing shell outputs with different options), it would be good to have error messages consistent.
Yep.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.