Skip to content
Snippets Groups Projects
Commit 13dfae4d authored by Rick Waldron's avatar Rick Waldron
Browse files

Fixes test/harness/nans.js


- correction to license
- use Number.isNaN

Signed-off-by: default avatarRick Waldron <waldron.rick@gmail.com>
parent 30a4fb13
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2017 Rick Waldron, 2016 the V8 project authors.
// Copyright (C) 2017 Rick Waldron, 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
......@@ -11,8 +11,8 @@ description: >
includes: [nans.js]
---*/
assert.sameValue(isNaN(distinctNaNs[0]), true);
assert.sameValue(isNaN(distinctNaNs[1]), true);
assert.sameValue(isNaN(distinctNaNs[2]), true);
assert.sameValue(isNaN(distinctNaNs[3]), true);
assert.sameValue(isNaN(distinctNaNs[4]), true);
assert.sameValue(Number.isNaN(distinctNaNs[0]), true);
assert.sameValue(Number.isNaN(distinctNaNs[1]), true);
assert.sameValue(Number.isNaN(distinctNaNs[2]), true);
assert.sameValue(Number.isNaN(distinctNaNs[3]), true);
assert.sameValue(Number.isNaN(distinctNaNs[4]), true);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment