diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-18 09:53:57 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-18 09:53:57 +0100 |
commit | 726d2c3093d1a386edbff106070456cf866c0a6a (patch) | |
tree | c15166385c9aca28ff395265875bd09c7f0174a9 /js/src/tests/ecma_5/Function/arguments-property-attributes.js | |
parent | a24511ca8e19afe4d19008ba903e1edab0af3223 (diff) | |
download | UXP-726d2c3093d1a386edbff106070456cf866c0a6a.tar UXP-726d2c3093d1a386edbff106070456cf866c0a6a.tar.gz UXP-726d2c3093d1a386edbff106070456cf866c0a6a.tar.lz UXP-726d2c3093d1a386edbff106070456cf866c0a6a.tar.xz UXP-726d2c3093d1a386edbff106070456cf866c0a6a.zip |
Remove strict arguments poison pill for "caller" property per ES2017
Diffstat (limited to 'js/src/tests/ecma_5/Function/arguments-property-attributes.js')
-rw-r--r-- | js/src/tests/ecma_5/Function/arguments-property-attributes.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/js/src/tests/ecma_5/Function/arguments-property-attributes.js b/js/src/tests/ecma_5/Function/arguments-property-attributes.js index 994b97ca4..f50c1e6da 100644 --- a/js/src/tests/ecma_5/Function/arguments-property-attributes.js +++ b/js/src/tests/ecma_5/Function/arguments-property-attributes.js @@ -56,7 +56,7 @@ var sa = strictArgs(0, 1); var strictArgProps = Object.getOwnPropertyNames(sa).sort(); assertEq(strictArgProps.indexOf("callee") >= 0, true); -assertEq(strictArgProps.indexOf("caller") >= 0, true); +assertEq(strictArgProps.indexOf("caller") >= 0, false); assertEq(strictArgProps.indexOf("0") >= 0, true); assertEq(strictArgProps.indexOf("1") >= 0, true); assertEq(strictArgProps.indexOf("length") >= 0, true); @@ -69,11 +69,7 @@ assertEq(strictCalleeDesc.enumerable, false); assertEq(strictCalleeDesc.configurable, false); var strictCallerDesc = Object.getOwnPropertyDescriptor(sa, "caller"); -assertEq(typeof strictCallerDesc.get, "function"); -assertEq(typeof strictCallerDesc.set, "function"); -assertEq(strictCallerDesc.get, strictCallerDesc.set); -assertEq(strictCallerDesc.enumerable, false); -assertEq(strictCallerDesc.configurable, false); +assertEq(strictCallerDesc, undefined); var strictZeroDesc = Object.getOwnPropertyDescriptor(sa, "0"); assertEq(strictZeroDesc.value, 0); |