tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / fast / js / script-tests / function-constructor-single-line-comment.js
1 description(
2 "This test checks that the Function constructor works correctly in the presence of single line comments."
3 );
4
5 shouldBeTrue("(new Function('return true//'))()");
6 shouldBeTrue("(new Function('return true;//'))()");
7 shouldBeTrue("(new Function('a', 'return a//'))(true)");
8 shouldBeTrue("(new Function('a', 'return a;//'))(true)");