Index: test/mjsunit/string-charcodeat.js |
diff --git a/test/mjsunit/string-charcodeat.js b/test/mjsunit/string-charcodeat.js |
index 8be6a092e6b8e557c7ecfe6fe73cea1dce7ecc47..72dc8190af133f57d6c9c7b4454049c2542a460a 100644 |
--- a/test/mjsunit/string-charcodeat.js |
+++ b/test/mjsunit/string-charcodeat.js |
@@ -231,3 +231,6 @@ for (var i = 0; i < 5; i++) { |
} |
%OptimizeFunctionOnNextCall(directlyOnPrototype); |
directlyOnPrototype(); |
+ |
+assertTrue(isNaN(%_StringCharCodeAt("ABC", -1))); |
+assertTrue(isNaN(%_StringCharCodeAt("ABC", 4))); |