Fixed test bug (missing scope reference).

This commit is contained in:
Ondřej Španěl 2017-03-28 10:26:31 +02:00
parent 92e59dac70
commit 35f150967a

View File

@ -13,7 +13,7 @@ describe("For statement", function() {
// one reference should be in the AST_Defun scope - search for it
var foundDefun = false;
node.name.thedef.references.forEach(function (r) {
if (r instanceof uglify.AST_Defun) foundDefun = true;
if (r.scope instanceof uglify.AST_Defun) foundDefun = true;
});
assert(foundDefun, "Symbol not referenced in the AST_Defun scope");