* Transform do-expressions on exit This allows other transforms (notably, block scoping) to do their magic first, possibly saving closures. Also fixes a bug with declaring duplicate bindings (de-opts now). * Use strict in exec test * lint
11 lines
93 B
JavaScript
11 lines
93 B
JavaScript
"use strict";
|
|
|
|
let a = 1;
|
|
|
|
(do {
|
|
let a = 2;
|
|
assert.equal(a, 2);
|
|
});
|
|
assert.equal(a, 1);
|
|
|