blob: f0787e2c7f08ab29170192a2068b500b5b87dcd5 [file] [log] [blame]
// Copyright 2011 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.3.4.5_A4
description: >
Function.prototype.bind call the original's internal [[Call]]
method rather than its .apply method.
---*/
function foo() {}
var b = foo.bind(33, 44);
foo.apply = function() {
throw new Test262Error("Function.prototype.bind called original's .apply method");
};
b(55, 66);