diff options
Diffstat (limited to 'node_modules/es5-ext/test/json/safe-stringify.js')
-rw-r--r-- | node_modules/es5-ext/test/json/safe-stringify.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/node_modules/es5-ext/test/json/safe-stringify.js b/node_modules/es5-ext/test/json/safe-stringify.js deleted file mode 100644 index 2d13f3def..000000000 --- a/node_modules/es5-ext/test/json/safe-stringify.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(t({ foo: "bar" }), JSON.stringify({ foo: "bar" })); - a(t({ foo: { elo: 12 } }), "{\"foo\":{\"elo\":12}}"); - a(t({ foo: { elo: 12, -mel: { - toJSON: function () { - throw new Error("Nu nu!"); -} - } } }), "{\"foo\":{\"elo\":12}}"); - a(t({ foo: { elo: 12 }, -mel: { - toJSON: function () { - throw new Error("Nu nu!"); -} - } }), "{\"foo\":{\"elo\":12}}"); - a(t({ foo: { elo: 12 }, -mel: [ -"raz", { - toJSON: function () { - throw new Error("Nu nu!"); -} - }, 0, 2 -] }), "{\"foo\":{\"elo\":12},\"mel\":[\"raz\",0,2]}"); -}; |