]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - tests/stress/eval-script-contains-null-character.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / eval-script-contains-null-character.js
... / ...
CommitLineData
1function shouldBe(actual, expected) {
2 if (actual !== expected)
3 throw new Error("bad value: " + actual);
4}
5
6function test() {
7 shouldBe(eval("(`\0`)"), "\0");
8 shouldBe(eval("('\0')"), "\0");
9}
10noInline(test);
11
12for (var i = 0; i < 10000; ++i)
13 test();