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); |