Source code

Revision control

Copy as Markdown

Other Tools

// Copyright (C) 2019 Aleksey Shvayka. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
verifyProperty uses SameValue for value comparison.
includes: [propertyHelper.js]
---*/
var obj = {
a: NaN,
b: -0,
};
assert(verifyProperty(obj, 'a', { value: NaN }));
assert(verifyProperty(obj, 'b', { value: -0 }));
assert.throws(Test262Error, function() {
verifyProperty(obj, 'b', { value: 0 });
});
reportCompare(0, 0);