summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/variable/12.2.1-22-s.js
blob: 13b0d1863c0b7b19ae7a8a069c780b9c4e2d390a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 12.2.1-22-s
description: >
    arguments as global var identifier throws SyntaxError in strict
    mode
---*/

    var indirectEval = eval;
assert.throws(SyntaxError, function() {
	    indirectEval("'use strict'; var arguments;");
});

reportCompare(0, 0);