same-value-x-y-null.js (483B)
1 // Copyright (C) 2015 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 es6id: 19.1.2.10 5 description: > 6 Object.is ( value1, value2 ) 7 8 7.2.9 SameValue(x, y) 9 10 ... 11 3. If Type(x) is different from Type(y), return false. 12 ... 13 5. If Type(x) is Null, return true. 14 ... 15 16 ---*/ 17 18 assert.sameValue(Object.is(null, null), true, "`Object.is(null, null)` returns `true`"); 19 20 reportCompare(0, 0);