blob: 3ea1475123e281afd024dac233ab6f8ea118f51c [file] [log] [blame]
description(
"This test checks that functions re-string-ify in a way that is syntactically " +
"compatible with concatenation."
);
shouldBe("(function(){return}).toString()", "'function () {return;}'");
shouldBe("(function(){return }).toString()", "'function () {return; }'");
shouldBe("(function(){return" + "\n" + "}).toString()", "'function () {return;" + "\\n" + "}'");
shouldBe("(function(){}).toString()", "'function () {}'");
shouldBe("(function(){ }).toString()", "'function () { }'");