Index: test/webkit/dfg-add-not-number.js |
diff --git a/test/webkit/resources/standalone-post.js b/test/webkit/dfg-add-not-number.js |
similarity index 86% |
copy from test/webkit/resources/standalone-post.js |
copy to test/webkit/dfg-add-not-number.js |
index d157e78bfa084329e2ec1a9b7d6ad456e904c152..df6dcdf2ef2b3c08e57020a17f9d3992c8ca95d3 100644 |
--- a/test/webkit/resources/standalone-post.js |
+++ b/test/webkit/dfg-add-not-number.js |
@@ -21,6 +21,15 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-wasPostTestScriptParsed = true; |
+description( |
+"Tests that adding things that aren't numbers using ++ does not crash or generate bogus code." |
+); |
+ |
+function foo(a) { |
+ a++; |
+ return a; |
+} |
+ |
+for (var i = 0; i < 100; ++i) |
+ shouldBe("foo(\"foo\" + i)", "NaN"); |
-finishJSTest(); |