blob: 856cc482c77eee8b8e0387cdd8fc8c0b786ced70 [file] [log] [blame]
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Two references to NaN do not satisfy the assertion.
---*/
var threw = false;
try {
assert.notSameValue(NaN, NaN);
} catch(err) {
threw = true;
if (err.constructor !== Test262Error) {
$ERROR(
'Expected a Test262Error, but a "' + err.constructor.name +
'" was thrown.'
);
}
}
if (threw === false) {
$ERROR('Expected a Test262Error, but no error was thrown.');
}