Test case details

Preparation Code

function T1() {}         T1.prototype.myMethod = function() {};         function T2() {       this.myMethod = function() {};     }         var t1 = new T1;     var t2 = new T2;

Test cases

Test #1

t1.myMethod();

Test #2

t2.myMethod();