15.3.2.1-11-8-s-strict.js (566B)
1 'use strict'; 2 // Copyright (c) 2012 Ecma International. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 es5id: 15.3.2.1-11-8-s 7 description: > 8 Strict Mode - SyntaxError is not thrown if a function is created 9 using a Function constructor that has two identical parameters, 10 which are separated by a unique parameter name and there is no 11 explicit 'use strict' in the function constructor's body 12 flags: [onlyStrict] 13 ---*/ 14 15 var foo = new Function("baz", "qux", "baz", "return 0;"); 16 17 reportCompare(0, 0);