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

15 lines
211 B
JavaScript
Executable File

function biz() { return this; }
var q = biz;
var o = { m: function theOne() {} }
var r = q.apply(o);
r.m()
function id(y) { return y; }
function theTwo() {}
var p = id;
var s = p.apply(null, [theTwo]);
s();