Closed Bug 335052 Opened 18 years ago Closed 11 years ago

E4X:toSource of [] and {} not consistent

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: BijuMailList, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

E4X:toSource of [] and {} not consistent with same e4x element repeat

x=<a><b>1</b></a>;
a={p:x, q:x};
b=[x, x];

["Object toSource", a.toSource(), "", "Array toSource", b.toSource() ].join('\n');

give ==>

Object toSource
({p:#1=<a>
  <b>1</b>
</a>, q:#1#})

Array toSource
[<a>
  <b>1</b>
</a>, <a>
  <b>1</b>
</a>]

step:-


1. navigate attachment "toSource_with_e4x_differs.html"
2. click Input Case "0" link
3. Click "test" button

4. links 1,2 shows possible future enhancement
Depends on: 335351
link to bug 335351
Blocks: e4x
E4X will be removed again from Spidermonkey (bug 788293)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: