10.4.3-1-103.js (486B)
1 // Copyright (c) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 es5id: 10.4.3-1-103 6 description: > 7 Non strict mode should ToObject thisArg if not an object. 8 Abstract equality operator should succeed. 9 ---*/ 10 11 Object.defineProperty(Object.prototype, "x", { get: function () { return this; } }); 12 13 assert.sameValue((5).x == 0, false, '(5).x == 0'); 14 assert((5).x == 5, '(5).x == 5'); 15 16 reportCompare(0, 0);