left: make_node(AST_Number, node, { value: 0 }),
right: make_node(AST_Number, node, { value: 0 }),
});
- if (node instanceof AST_Scope && node !== scope) return node;
}));
var body = [];
if (fn.rest || !all(fn.argnames, function(argname) {
}
expect_stdout: "42"
}
+
+issue_5237: {
+ options = {
+ evaluate: true,
+ inline: true,
+ }
+ input: {
+ function f() {
+ (function() {
+ while (console.log(0/0));
+ })();
+ (function() {
+ var NaN = console && console.log(NaN);
+ })();
+ }
+ f();
+ }
+ expect: {
+ function f() {
+ (function() {
+ while (console.log(0/0));
+ })();
+ var NaN = console && console.log(NaN);
+ return;
+ }
+ f();
+ }
+ expect_stdout: [
+ "NaN",
+ "undefined",
+ ]
+}