aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-03-18 02:33:51 +0800
committerGitHub <noreply@github.com>2017-03-18 02:33:51 +0800
commit0489d6de6499154c758a6464387546ec5a060f67 (patch)
tree71d718c699e59b222e2a3d4d9ba74f5a4f7d59d0 /test/compress
parentfb092839c26ddaa0614df5295be85ea207bda9f7 (diff)
downloadtracifyjs-0489d6de6499154c758a6464387546ec5a060f67.tar.gz
tracifyjs-0489d6de6499154c758a6464387546ec5a060f67.zip
handle runtime errors in `expect_stdout` (#1618)
allow test to pass if both `input` and `expect` throws the same kind of error
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/issue-1588.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/compress/issue-1588.js b/test/compress/issue-1588.js
index ff25635c..fce9ba54 100644
--- a/test/compress/issue-1588.js
+++ b/test/compress/issue-1588.js
@@ -85,3 +85,15 @@ unsafe_undefined: {
}
expect_stdout: true
}
+
+runtime_error: {
+ input: {
+ const a = 1;
+ console.log(a++);
+ }
+ expect: {
+ const a = 1;
+ console.log(a++);
+ }
+ expect_stdout: true
+}