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)

PowerPC
macOS
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

toString of a function with the code (<{z}/>); (<{z}/>); causes JavaScript execution to halt, even in a try/catch block. Testcase coming.
Attached file testcase
Result: the last thing you see in the console is "About to toString f".
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"); }
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.

Attachment

General

Creator:
Created:
Updated:
Size: