blob: fccc90074bec9c1a57620d288cb5de0e1f8aa6c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// 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);
|