diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-10-04 18:58:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 01:58:50 +0800 |
commit | f9946767c9e517561253eed22558fb154daf84d1 (patch) | |
tree | 7864ac73cd9bcf07c613933be1ee8cf40d752d43 /test/mocha/with.js | |
parent | 58ac5b9bd5e5d37a4afd2c435973dd8c56449ffb (diff) | |
download | tracifyjs-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.js | 4 |
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); }); }); |