Test case details

Preparation Code

var f = function(){ return this; }; var that = {}; var bound = f.bind(that);

Test cases

Test #1

f();

Test #2

f.apply(that);

Test #3

f.call(that);

Test #4

bound();

Test #5

obj.foo.call(obj, b[0], b[1], b[2]);