utatane.tea@gmail.com | ef457b6 | 2015-04-29 17:44:53 +0000 | [diff] [blame] | 1 | function shouldBe(actual, expected) { |
2 | if (actual !== expected) | ||||
3 | throw new Error("bad value: " + actual); | ||||
4 | } | ||||
5 | |||||
6 | function test() { | ||||
7 | shouldBe(eval("(`\0`)"), "\0"); | ||||
8 | shouldBe(eval("('\0')"), "\0"); | ||||
9 | } | ||||
10 | noInline(test); | ||||
11 | |||||
12 | for (var i = 0; i < 10000; ++i) | ||||
13 | test(); |