15.3.2.1-10-6gs.js (491B)
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: 15.3.2.1-10-6gs 6 description: > 7 Strict Mode - SyntaxError is thrown if a function using the 8 Function constructor has two identical parameters in (local) 9 strict mode 10 flags: [noStrict] 11 ---*/ 12 13 assert.throws(SyntaxError, function() { 14 new Function('param_1', 'param_2', 'param_1', '"use strict";return 0;'); 15 }); 16 17 reportCompare(0, 0);