1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
var cnBadSyntax = '1=2'; var obj = new testObject; f.call(obj); g(); function testObject() { this.badSyntax = cnBadSyntax; } function f() { try { eval(this.badSyntax) } catch (e) {} } function g() { f.call(); }