mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
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);
|