aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/with.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-10-04 18:58:50 +0100
committerGitHub <noreply@github.com>2020-10-05 01:58:50 +0800
commitf9946767c9e517561253eed22558fb154daf84d1 (patch)
tree7864ac73cd9bcf07c613933be1ee8cf40d752d43 /test/mocha/with.js
parent58ac5b9bd5e5d37a4afd2c435973dd8c56449ffb (diff)
downloadtracifyjs-f9946767c9e517561253eed22558fb154daf84d1.tar.gz
tracifyjs-f9946767c9e517561253eed22558fb154daf84d1.zip
retrofit `AST_BlockStatement` as block-scoped (#4177)
Diffstat (limited to 'test/mocha/with.js')
-rw-r--r--test/mocha/with.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mocha/with.js b/test/mocha/with.js
index c6283800..7c17077e 100644
--- a/test/mocha/with.js
+++ b/test/mocha/with.js
@@ -17,7 +17,7 @@ describe("With", function() {
var ast = UglifyJS.parse("with(e) {f(1, 2)}");
ast.figure_out_scope();
assert.equal(ast.uses_with, true);
- assert.equal(ast.body[0].expression.scope.uses_with, true);
- assert.equal(ast.body[0].body.body[0].body.expression.scope.uses_with, true);
+ assert.equal(ast.body[0].expression.scope.resolve().uses_with, true);
+ assert.equal(ast.body[0].body.body[0].body.expression.scope.resolve().uses_with, true);
});
});