Debian Codegraph @

js/src/tests/test262/language/statements/function/13.2-19-b-3gs-strict.js

raw
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: 13.2-19-b-3gs
7 description: >
8 StrictMode - error is thrown when assign a value to the 'caller'
9 property of a function object
10 flags: [onlyStrict]
11 ---*/
12
13 function _13_2_19_b_3_gs() {}
14
15 assert.throws(TypeError, function() {
16 _13_2_19_b_3_gs.caller = 1;
17 });
18
19 reportCompare(0, 0);