diff options
Diffstat (limited to 'test/built-ins/Function/15.3.5.4_2-53gs.js')
-rw-r--r-- | test/built-ins/Function/15.3.5.4_2-53gs.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/built-ins/Function/15.3.5.4_2-53gs.js b/test/built-ins/Function/15.3.5.4_2-53gs.js index 50bfb37e3..662870cbf 100644 --- a/test/built-ins/Function/15.3.5.4_2-53gs.js +++ b/test/built-ins/Function/15.3.5.4_2-53gs.js @@ -11,12 +11,17 @@ flags: [noStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { get: function() { "use strict"; gNonStrict(); } }); +Object.defineProperty(o, "foo", { + get: function() { + "use strict"; + gNonStrict(); + } +}); assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } |