Closed
Bug 351001
Opened 19 years ago
Closed 19 years ago
toString on this function (with parameterized E4X literals) halts javascript
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jruderman, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
559 bytes,
text/html
|
Details |
toString of a function with the code
(<{z}/>); (<{z}/>);
causes JavaScript execution to halt, even in a try/catch block.
Testcase coming.
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Comment 2•19 years ago
|
||
Result: the last thing you see in the console is "About to toString f".
Comment 3•19 years ago
|
||
jsshell version of the test bellow has "interesting" behavior. After printing "About to toString f" it juts quits with exit status 0.
// This does not trigger the bug.
//test("g = <z/>; h = <z/>;");
// Each of these triggers the bug.
test("(<x a={b}/>).(false); (<{z}/>);");
test("(<x a={b}/>).(false); (<x a={b}/>).(false);");
test("(<{z}/>); (<{z}/>);");
print("Done");
function test(code)
{
f = new Function(code);
try{
print("About to toString f");
fs = "" + f;
print("Done toStringing f");
print("f: " + fs);
}
catch(ex) {
print("caught:");
print(ex);
}
print("Below try/catch block");
}
Comment 4•19 years ago
|
||
Fixed by what bug? Dunno, but WFM in latest trunk js shell.
/be
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•