| Index: test/mjsunit/harmony/arrow-functions.js
|
| diff --git a/test/mjsunit/harmony/arrow-functions.js b/test/mjsunit/harmony/arrow-functions.js
|
| index 0ffa9369919aa8b83bd88ebf6cbb57eea373eea3..8414a6b155c79d1005f7be4b160b714aa96fb5ce 100644
|
| --- a/test/mjsunit/harmony/arrow-functions.js
|
| +++ b/test/mjsunit/harmony/arrow-functions.js
|
| @@ -47,3 +47,21 @@ var fives = [];
|
| if (v % 5 === 0) fives.push(v);
|
| });
|
| assertEquals([5, 10], fives);
|
| +
|
| +(function testRestrictedFunctionPropertiesStrict() {
|
| + "use strict";
|
| + assertFalse((() => {}).hasOwnProperty("arguments"));
|
| + assertThrows(function() { return (() => {}).arguments; }, TypeError);
|
| +
|
| + assertFalse((() => {}).hasOwnProperty("caller"));
|
| + assertThrows(function() { return (() => {}).caller; }, TypeError);
|
| +})();
|
| +
|
| +
|
| +(function testRestrictedFunctionPropertiesSloppy() {
|
| + assertFalse((() => {}).hasOwnProperty("arguments"));
|
| + assertThrows(function() { return (() => {}).arguments; }, TypeError);
|
| +
|
| + assertFalse((() => {}).hasOwnProperty("caller"));
|
| + assertThrows(function() { return (() => {}).caller; }, TypeError);
|
| +})();
|
|
|