diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/String/prototype/includes/name.js')
-rw-r--r-- | js/src/tests/test262/built-ins/String/prototype/includes/name.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/js/src/tests/test262/built-ins/String/prototype/includes/name.js b/js/src/tests/test262/built-ins/String/prototype/includes/name.js index 24bf088db4..fe8cdc1d5d 100644 --- a/js/src/tests/test262/built-ins/String/prototype/includes/name.js +++ b/js/src/tests/test262/built-ins/String/prototype/includes/name.js @@ -13,13 +13,11 @@ includes: [propertyHelper.js] features: [String.prototype.includes] ---*/ -assert.sameValue( - String.prototype.includes.name, 'includes', - 'The value of `String.prototype.includes.name` is `"includes"`' -); - -verifyNotEnumerable(String.prototype.includes, 'name'); -verifyNotWritable(String.prototype.includes, 'name'); -verifyConfigurable(String.prototype.includes, 'name'); +verifyProperty(String.prototype.includes, "name", { + value: "includes", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); |