12.10.1-8-s.js (573B)
1 // Copyright (c) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 es5id: 12.10.1-8-s 6 description: > 7 with statement in strict mode throws SyntaxError (function 8 expression, where the container Function is strict) 9 flags: [noStrict] 10 ---*/ 11 12 13 assert.throws(SyntaxError, function() { 14 Function("\ 15 \'use strict\'; \ 16 var f1 = function () {\ 17 var o = {}; \ 18 with (o) {}; \ 19 }\ 20 "); 21 }); 22 23 reportCompare(0, 0);