michael@0: function test1() { michael@0: var BUGNUMBER = ''; michael@0: var summary = ''; michael@0: var actual = ''; michael@0: test(BUGNUMBER); michael@0: function test() { michael@0: try { michael@0: (function () { eval("'foo'.b()", arguments) })(); michael@0: } catch(ex) { michael@0: actual = ex + ''; michael@0: } michael@0: } michael@0: assertEq(actual, 'TypeError: "foo".b is not a function'); michael@0: } michael@0: test1(); michael@0: michael@0: function test2() { michael@0: var BUGNUMBER = ''; michael@0: var summary = ''; michael@0: function g() { michael@0: 'use strict'; michael@0: try { michael@0: eval('function foo() { var a, arguments, b;}'); michael@0: } catch (x) { michael@0: return (x instanceof SyntaxError); michael@0: } michael@0: }; michael@0: assertEq(g(), true); michael@0: } michael@0: test2();