blob: 880e88afaa429c2988b502a192f7ceb97823c59c [file] [log] [blame]
description(
"This test checks that regexps, strings with special characters, object literals with non-identifier names, and array literals are pretty-printed correctly"
);
function f() {
var re = /test/g;
var s = '\n\r\\';
}
function g() {
var o = {"#000": 1};
return ["a", "b", "c"];
}
eval(f.toString());
eval(g.toString());
shouldBe("g().toString()", "['a', 'b', 'c'].toString()");