mirror of https://github.com/tc39/test262.git
8 lines
206 B
JavaScript
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);
|