Closed Bug 563001 Opened 14 years ago Closed 14 years ago

JM: Browser fails Mochitest content/base/test/test_NodeIterator_mutations_3.html

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dmandelin, Assigned: dmandelin)

References

Details

The wrong value is read from a global variable.
Blocks: JaegerGreen
Assignee: general → dmandelin
I have more info but still not sure what's going on. The test case has code like this:

  var content = expr;
  ... content ...

Fx supports a property |window.content|. The DEFVAR here does a lookup on |content|, which creates a new property on the global. For some reason, we get:

  in TM: prop created on window as enumerate "content": slot 73
  in JM: prop created on window.__proto__ as enumerate shared getter "content":
              slot -1

So in JM the assignment would shadow a readonly and thus has no effect. It's weird that there would be any difference because they are both just calling lookup() in DEFVAR.
Works now. Probably got fixed with David's recent update to globals.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.