aboutsummaryrefslogtreecommitdiff
path: root/test/compress/labels.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-04-22 22:27:26 +0100
committerGitHub <noreply@github.com>2020-04-23 05:27:26 +0800
commit3ae24329eb29c9b1c924c16778348e7ae7efc510 (patch)
tree4fd522c298a35e5d1af6ae51c367990abc4d8d62 /test/compress/labels.js
parent01b13d797cdeabecad25c33e039fd3ec848b71d0 (diff)
downloadtracifyjs-3ae24329eb29c9b1c924c16778348e7ae7efc510.tar.gz
tracifyjs-3ae24329eb29c9b1c924c16778348e7ae7efc510.zip
gate various label-related transformations (#3812)
Diffstat (limited to 'test/compress/labels.js')
-rw-r--r--test/compress/labels.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/compress/labels.js b/test/compress/labels.js
index 00232834..13ac8e38 100644
--- a/test/compress/labels.js
+++ b/test/compress/labels.js
@@ -3,6 +3,7 @@ labels_1: {
conditionals: true,
dead_code: true,
if_return: true,
+ unused: true,
}
input: {
out: {
@@ -21,6 +22,7 @@ labels_2: {
conditionals: true,
dead_code: true,
if_return: true,
+ unused: true,
}
input: {
out: {
@@ -61,6 +63,7 @@ labels_4: {
conditionals: true,
dead_code: true,
if_return: true,
+ unused: true,
}
input: {
out: for (var i = 0; i < 5; ++i) {
@@ -105,6 +108,9 @@ labels_5: {
}
labels_6: {
+ options = {
+ dead_code: true,
+ }
input: {
out: break out;
};
@@ -159,6 +165,7 @@ labels_9: {
conditionals: true,
dead_code: true,
if_return: true,
+ unused: true,
}
input: {
out: while (foo) {