aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-04-25 02:42:54 +0800
committerGitHub <noreply@github.com>2019-04-25 02:42:54 +0800
commitc56d89f804e852f8678fa7557f781de893c138bf (patch)
treee5b9f93dd56a34dacedd49f26a0970f36b1fb373 /test
parentc2157063505dd211acc907f32a1a7e892aa0973f (diff)
downloadtracifyjs-c56d89f804e852f8678fa7557f781de893c138bf.tar.gz
tracifyjs-c56d89f804e852f8678fa7557f781de893c138bf.zip
enhance `unsafe` (#3382)
Diffstat (limited to 'test')
-rw-r--r--test/compress/evaluate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js
index 5b16824b..89bfe2a8 100644
--- a/test/compress/evaluate.js
+++ b/test/compress/evaluate.js
@@ -820,8 +820,8 @@ unsafe_charAt_noop: {
}
expect: {
console.log(
- s.charAt(0),
- "string".charAt(x),
+ s[0],
+ "string"[0 | x],
(typeof x)[0]
);
}