Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Unified Diff: test/mjsunit/json-parser-recursive.js

Issue 11362007: Correctly check for stack overflow even when interrupt is pending. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: split tests. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.h ('k') | test/mjsunit/json-recursive.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/json-parser-recursive.js
diff --git a/test/mjsunit/regress/regress-crbug-119926.js b/test/mjsunit/json-parser-recursive.js
similarity index 92%
copy from test/mjsunit/regress/regress-crbug-119926.js
copy to test/mjsunit/json-parser-recursive.js
index 1ad250a2b83f46552584beef0c3d12521f0c921d..1e00c83c87f33b105acd076fbbc4c9316bafbef2 100644
--- a/test/mjsunit/regress/regress-crbug-119926.js
+++ b/test/mjsunit/json-parser-recursive.js
@@ -25,11 +25,9 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --gc-global
-
-// Test that array elements don't break upon garbage collection.
-
-var a = new Array(500);
+var str = "[1]";
for (var i = 0; i < 100000; i++) {
- a[i] = new Object();
+ str = "[1," + str + "]";
}
+
+assertThrows(function() { JSON.parse(str); }, RangeError);
« no previous file with comments | « src/isolate.h ('k') | test/mjsunit/json-recursive.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698