[JSC] JSON.stringify can accept call-with-no-arguments
[WebKit-https.git] / JSTests / stress / json-stringify-no-arguments.js
1 function shouldBe(actual, expected) {
2     if (actual !== expected)
3         throw new Error('bad value: ' + actual);
4 }
5
6 shouldBe(JSON.stringify(), undefined);
7 shouldBe(JSON.stringify(undefined), undefined);