Lines Matching refs:apply
25 * JDK-8046905: apply on apply is broken
31 var apply = Function.prototype.apply;
41 print("1 level of apply")
43 print(sort.apply([4,3,2,1]))
45 print("2 levels of apply")
47 print(apply.apply(sort,[[4,3,2,1]]))
49 print("3 levels of apply")
51 print(apply.apply(apply,[sort,[[4,3,2,1]]]))
53 print("4 levels of apply")
55 print(apply.apply(apply,[apply,[sort,[[4,3,2,1]]]]))
57 print("5 levels of apply")
59 print(apply.apply(apply,[apply,[apply,[sort,[[4,3,2,1]]]]]))
61 print("Many levels of apply!")
63 print(apply.apply(apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[apply,[sort,[[4,3,2,1]]]]]]]]]]]]]]]]]]]]]]))
69 print(apply.apply(apply,[apply,invocation]))
83 print("call apply call apply call... a lot");
85 print(apply.call(call, apply, [call, apply, [call, apply, [call, apply, [call, apply, [call, apply, [sort, [4,3,2,1]]]]]]]))
88 print("apply call apply call apply... a lot");
90 print(call.apply(apply, [call, apply, [call, apply, [call, apply, [call, apply, [call, apply, [call, apply, [call, sort, [[4,3,2,1]]]]]]]]]))