verifyProperty-noproperty.js (478B)
1 // Copyright (C) 2017 Leo Balter. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 description: > 6 The first argument should have an own property 7 includes: [propertyHelper.js] 8 ---*/ 9 assert.throws(Test262Error, () => { 10 verifyProperty(Object, 'JeanPaulSartre', {}); 11 }, "inexisting property"); 12 13 assert.throws(Test262Error, () => { 14 verifyProperty({}, 'hasOwnProperty', {}); 15 }, "inexisting own property"); 16 17 reportCompare(0, 0);