blob: c9d811439053fda1d5eb9af2935faacbc12f2317 [file] [log] [blame]
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-1
description: Array.prototype.filter applied to undefined throws a TypeError
---*/
assert.throws(TypeError, function() {
Array.prototype.filter.call(undefined); // TypeError is thrown if value is undefined
});