blob: d435c626cf0bf4c5f16bc2c21350ac26213b47aa [file] [log] [blame]
// This test won't get into the FTL currently, since the foo() function just exits a lot.
//@ noFTLRunLayoutTest
description(
"Tests that adding things that aren't numbers using ++ does not crash or generate bogus code."
);
function foo(a) {
a++;
return a;
}
dfgShouldBe(foo, "foo(\"foo\")", "NaN");