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