Sha256: 355140b7c0452d08226f8a03e5cc7011efd7ccc068378b50628adc0afe75bf3c

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

'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]}');
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guard-sass-lint-0.1.2 node_modules/es5-ext/test/json/safe-stringify.js
guard-sass-lint-0.1.1 node_modules/es5-ext/test/json/safe-stringify.js