12.2.1-22-s.js (406B)
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.2.1-22-s 6 description: > 7 arguments as global var identifier throws SyntaxError in strict 8 mode 9 ---*/ 10 11 var indirectEval = eval; 12 assert.throws(SyntaxError, function() { 13 indirectEval("'use strict'; var arguments;"); 14 }); 15 16 reportCompare(0, 0);