mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-02 22:22:19 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
21
web/node_modules/es5-ext/test/json/safe-stringify.js
generated
vendored
Normal file
21
web/node_modules/es5-ext/test/json/safe-stringify.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
"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]}"
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue