E4X:toSource of [] and {} not consistent

RESOLVED WONTFIX

Status

()

RESOLVED WONTFIX
13 years ago
6 years ago

People

(Reporter: BijuMailList, Unassigned)

Tracking

({testcase})

Trunk
x86
Windows XP
testcase
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
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
(Reporter)

Comment 1

13 years ago
Created attachment 219405 [details]
testcase toSource_with_e4x_differs.html
(Reporter)

Updated

13 years ago
Depends on: 335351
(Reporter)

Comment 2

13 years ago
link to bug 335351
(Reporter)

Updated

11 years ago
Blocks: 246441
E4X will be removed again from Spidermonkey (bug 788293)
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.