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