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

harness test: nan.js

parent 7c9b648d
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2017 Rick Waldron, 2016 the V8 project authors.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Including nans.js will expose:
var distinctNaNs = [
0/0, Infinity/Infinity, -(0/0), Math.pow(-1, 0.5), -Math.pow(-1, 0.5)
];
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);
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