exception-not-object-coercible.js (427B)
1 // Copyright (C) 2015 Jordan Harband. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-object.entries 6 description: Object.entries should fail if given a null or undefined value 7 author: Jordan Harband 8 ---*/ 9 10 assert.throws(TypeError, function() { 11 Object.entries(null); 12 }); 13 14 assert.throws(TypeError, function() { 15 Object.entries(undefined); 16 }); 17 18 reportCompare(0, 0);