14 lines
311 B
JavaScript
14 lines
311 B
JavaScript
// 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");
|