Skip to content
Snippets Groups Projects
exception-not-object-coercible.js 398 B
Newer Older
  • Learn to ignore specific revisions
  • Jordan Harband's avatar
    Jordan Harband committed
    // Copyright (C) 2015 Jordan Harband. All rights reserved.
    // This code is governed by the BSD license found in the LICENSE file.
    
    /*---
    description: Object.values should fail if given a null or undefined value
    
    Jordan Harband's avatar
    Jordan Harband committed
    author: Jordan Harband
    ---*/
    
    assert.throws(TypeError, function () {
        Object.values(null);
    });
    
    assert.throws(TypeError, function () {
        Object.values(undefined);
    });