WALA/com.ibm.wala.cast.js.test.data/examples-src/tests/function_apply2.js

9 lines
167 B
JavaScript
Raw Normal View History

2012-08-22 16:15:46 +00:00
// test use of arguments array
function useArgs() {
return arguments[2];
}
var o = {}
function theThree() {}
var a = useArgs;
var b = a.apply(o, [o,o,theThree]);
b();