mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 23:07:42 +03:00
use Object.is() in tests
This commit is contained in:
@@ -2,7 +2,7 @@ function assert(actual, expected, message) {
|
||||
if (arguments.length == 1)
|
||||
expected = true;
|
||||
|
||||
if (actual === expected)
|
||||
if (Object.is(actual, expected))
|
||||
return;
|
||||
|
||||
if (actual !== null && expected !== null
|
||||
|
Reference in New Issue
Block a user