blob: 7af8a36b1d4940a18c60b6825232a0b948ab8308 [file] [log] [blame]
description(
"Tests that code that is dead, unreachable, and contains a chain of nodes that use each other in an untyped way doesn't result in the IR getting corrupted."
);
function foo(a) {
function bar(p) {
if (p) {
var x = a; // It's dead and unreachable, and it involves a GetScopeVar(GetScopeRegisters(GetMyScope())).
}
return 5;
}
return bar;
}
dfgShouldBe(foo(0), "foo(42)(false)", "5");