Index: test/webkit/string-replacement-outofmemory.js |
diff --git a/test/webkit/string-replacement-outofmemory.js b/test/webkit/string-replacement-outofmemory.js |
index 2b8e18a854110a7c81829b2ff1aa551435f294a2..becfdc6a1f69f38e7d28417785b336407438f53d 100644 |
--- a/test/webkit/string-replacement-outofmemory.js |
+++ b/test/webkit/string-replacement-outofmemory.js |
@@ -37,5 +37,5 @@ var y = "2"; |
x = createStringWithRepeatedChar(x, 1 << 12); |
y = createStringWithRepeatedChar(y, (1 << 20) + 1); |
-shouldThrow("x.replace(/\\d/g, y)", '"Error: Out of memory"'); |
+shouldThrow("x.replace(/\\d/g, y)", '"RangeError: Invalid string length"'); |
var successfullyParsed = true; |