diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/String/prototype/split/checking-if-deleting-the-string-prototype-split-length-property-fails.js')
-rw-r--r-- | js/src/tests/test262/built-ins/String/prototype/split/checking-if-deleting-the-string-prototype-split-length-property-fails.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/String/prototype/split/checking-if-deleting-the-string-prototype-split-length-property-fails.js b/js/src/tests/test262/built-ins/String/prototype/split/checking-if-deleting-the-string-prototype-split-length-property-fails.js new file mode 100644 index 0000000000..fb4decb365 --- /dev/null +++ b/js/src/tests/test262/built-ins/String/prototype/split/checking-if-deleting-the-string-prototype-split-length-property-fails.js @@ -0,0 +1,26 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: | + The String.prototype.split.length property does not have the attribute + DontDelete +es5id: 15.5.4.14_A9 +description: > + Checking if deleting the String.prototype.split.length property + fails +---*/ + +assert( + String.prototype.split.hasOwnProperty('length'), + 'String.prototype.split.hasOwnProperty(\'length\') must return true' +); + +assert(delete String.prototype.split.length, 'The value of `delete String.prototype.split.length` is true'); + +assert( + !String.prototype.split.hasOwnProperty('length'), + 'The value of `!String.prototype.split.hasOwnProperty(\'length\')` is true' +); + +reportCompare(0, 0); |