let r = 0
function _method(a, b) {
return a + b;
}
function method(a, b) {
return a + b;
}
let namespace = {}
namespace.method = method
function Test() {}
let instance = new Test()
instance.method = method
Test2.prototype.method = (a, b) => {
return a + b;
}
function Test2() {
}
let proto = new Test2()
class Test3 {
method(a, b) {
return a + b;
}
}
let c = new Test3()
r += _method(1, 2)
r += method(1, 2)
r += namespace.method(1, 2)
r += instance.method(1, 2)
r += proto.method(1, 2)
r += c.method(1, 2)