Skip to content
Snippets Groups Projects
Commit 61fdc701 authored by Richard Gibson's avatar Richard Gibson Committed by Rick Waldron
Browse files

Remove duplicate test

parent 950d58a7
No related branches found
No related tags found
No related merge requests found
...@@ -3,11 +3,15 @@ ...@@ -3,11 +3,15 @@
/*--- /*---
es5id: 15.12.3_4-1-2 es5id: 15.12.3_4-1-2
description: JSON.stringify a circular object throws a TypeError description: JSON.stringify a indirectly circular object throws a error
---*/ ---*/
var obj = {}; var obj = {
obj.prop = obj; p1: {
p2: {}
}
};
obj.p1.p2.prop = obj;
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
JSON.stringify(obj); JSON.stringify(obj);
......
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.12.3_4-1-3
description: JSON.stringify a indirectly circular object throws a error
---*/
var obj = {
p1: {
p2: {}
}
};
obj.p1.p2.prop = obj;
assert.throws(TypeError, function() {
JSON.stringify(obj);
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment