test262/implementation-contributed/javascriptcore/stress/json-stringify-no-arguments.js

8 lines
206 B
JavaScript

function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
shouldBe(JSON.stringify(), undefined);
shouldBe(JSON.stringify(undefined), undefined);