var testParent = {
'testMethod' : function () {print('a');}
};
function testClass() {}
testClass.prototype = testParent;
var testInstance = new testClass();
testInstance.testMethod();
testParent.testMethod = function() {print('b');};
testInstance.testMethod();
dmFyIHRlc3RQYXJlbnQgPSB7CgkndGVzdE1ldGhvZCcgOiBmdW5jdGlvbiAoKSB7cHJpbnQoJ2EnKTt9Cgl9OwoJCmZ1bmN0aW9uIHRlc3RDbGFzcygpIHt9CnRlc3RDbGFzcy5wcm90b3R5cGUgPSB0ZXN0UGFyZW50Owp2YXIgdGVzdEluc3RhbmNlID0gbmV3IHRlc3RDbGFzcygpOwp0ZXN0SW5zdGFuY2UudGVzdE1ldGhvZCgpOwp0ZXN0UGFyZW50LnRlc3RNZXRob2QgPSBmdW5jdGlvbigpIHtwcmludCgnYicpO307CnRlc3RJbnN0YW5jZS50ZXN0TWV0aG9kKCk7