diff options
Diffstat (limited to 'test/compress/evaluate.js')
-rw-r--r-- | test/compress/evaluate.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js index 597c7c87..c92e82bd 100644 --- a/test/compress/evaluate.js +++ b/test/compress/evaluate.js @@ -847,6 +847,8 @@ unsafe_charAt_noop: { unsafe: true, } input: { + s = "foo"; + x = 42; console.log( s.charAt(0), "string".charAt(x), @@ -854,12 +856,15 @@ unsafe_charAt_noop: { ); } expect: { + s = "foo"; + x = 42; console.log( - s[0], - "string"[0 | x], - (typeof x)[0] + s[0] || "", + "string"[0 | x] || "", + (typeof x)[0] || "" ); } + expect_stdout: "f n" } issue_1649: { |