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

Unified Diff: test/mjsunit/json-stringify-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 | « test/mjsunit/json-recursive.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/json-stringify-recursive.js
diff --git a/test/mjsunit/json-recursive.js b/test/mjsunit/json-stringify-recursive.js
similarity index 93%
rename from test/mjsunit/json-recursive.js
rename to test/mjsunit/json-stringify-recursive.js
index 7a8c54774e3554fd69b74a7b2db7a7a40761dd1d..31aa0027c566b68b72f44ee602d3d16e414104df 100644
--- a/test/mjsunit/json-recursive.js
+++ b/test/mjsunit/json-stringify-recursive.js
@@ -25,7 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
var a = {};
for (i = 0; i < 10000; i++) {
var current = {};
@@ -51,11 +50,3 @@ assertThrows(function() { JSON.stringify(deepArray); }, RangeError);
var deepObject = {};
for (var i = 0; i < depth; i++) deepObject = { next: deepObject };
assertThrows(function() { JSON.stringify(deepObject); }, RangeError);
-
-
-var str = "[1]";
-for (var i = 0; i < 100000; i++) {
- str = "[1," + str + "]";
-}
-
-assertThrows(function() { JSON.parse(str); }, RangeError);
« no previous file with comments | « test/mjsunit/json-recursive.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698