| 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..dc9424b070625f45f52d222e2edc5b2a7a1580a3 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";
|
| + assertEquals(false, (() => {}).hasOwnProperty("arguments"));
|
| + assertEquals(null, (() => {}).arguments);
|
| +
|
| + assertEquals(false, (() => {}).hasOwnProperty("caller"));
|
| + assertEquals(null, (() => {}).caller);
|
| +})();
|
| +
|
| +
|
| +(function testRestrictedFunctionPropertiesSloppy() {
|
| + assertEquals(false, (() => {}).hasOwnProperty("arguments"));
|
| + assertEquals(null, (() => {}).arguments);
|
| +
|
| + assertEquals(false, (() => {}).hasOwnProperty("caller"));
|
| + assertEquals(null, (() => {}).caller);
|
| +})();
|
|
|