From a954ae3a6e304f95c17d1d938c128cc139c2e564 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 24 Jan 2015 16:32:02 +1100 Subject: [PATCH] add breaking switch break test --- .../es6-block-scoping/exec-switch-break/exec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/fixtures/transformation/es6-block-scoping/exec-switch-break/exec.js diff --git a/test/fixtures/transformation/es6-block-scoping/exec-switch-break/exec.js b/test/fixtures/transformation/es6-block-scoping/exec-switch-break/exec.js new file mode 100644 index 0000000000..46d0adff12 --- /dev/null +++ b/test/fixtures/transformation/es6-block-scoping/exec-switch-break/exec.js @@ -0,0 +1,11 @@ +if (true) { + const x = 1; + switch (x) { + case 1: { + function y() { + assert(x, 1); + } + break; + } + } +}