exception-not-object-coercible.js (423B)
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.values 6 description: Object.values should fail if given a null or undefined value 7 author: Jordan Harband 8 ---*/ 9 10 assert.throws(TypeError, function() { 11 Object.values(null); 12 }); 13 14 assert.throws(TypeError, function() { 15 Object.values(undefined); 16 }); 17 18 reportCompare(0, 0);