summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/function/13.2-13-s.js
blob: b809fa2939bc9f128910a8025a0b1c2a1238d261 (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: 13.2-13-s
description: >
    StrictMode - reading a property named 'arguments' of function
    objects is not allowed outside the function
---*/

        var foo = new Function("'use strict';");
assert.throws(TypeError, function() {
            var temp = foo.arguments;
});

reportCompare(0, 0);