Lines Matching refs:builtin
37 var builtin = Object.prototype.valueOf; // Builtin function that returns this.
39 assertEquals(global, builtin(), "Direct call to builtin");
41 assertEquals(global, builtin.call(), "call() to builtin");
42 assertEquals(global, builtin.call(null), "call(null) to builtin");
43 assertEquals(global, builtin.call(undefined), "call(undefined) to builtin");
45 assertEquals(global, builtin.apply(), "apply() to builtin");
46 assertEquals(global, builtin.apply(null), "apply(null) to builtin");
47 assertEquals(global, builtin.apply(undefined), "apply(undefined) to builtin");
49 assertEquals(global, builtin.call.call(builtin), "call.call() to builtin");
50 assertEquals(global, builtin.call.apply(builtin), "call.apply() to builtin");
51 assertEquals(global, builtin.apply.call(builtin), "apply.call() to builtin");
52 assertEquals(global, builtin.apply.apply(builtin), "apply.apply() to builtin");