Merge pull request #1623 from Ms2ger/RelativeTimeFormat-@@toStringTag

Update expectation for Intl.RelativeTimeFormat.prototype[@@toStringTag].
This commit is contained in:
Rick Waldron 2018-07-06 14:43:20 -04:00 committed by GitHub
commit ffeae548a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,16 @@
// Copyright 2018 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.RelativeTimeFormat.prototype-@@tostringtag
description: >
Checks Object.prototype.toString with Intl.RelativeTimeFormat objects.
info: |
Intl.RelativeTimeFormat.prototype[ @@toStringTag ]
The initial value of the @@toStringTag property is the string value "Intl.RelativeTimeFormat".
features: [Intl.RelativeTimeFormat]
---*/
assert.sameValue(Object.prototype.toString.call(Intl.RelativeTimeFormat.prototype), "[object Intl.RelativeTimeFormat]");
assert.sameValue(Object.prototype.toString.call(new Intl.RelativeTimeFormat("en")), "[object Intl.RelativeTimeFormat]");

View File

@ -8,7 +8,7 @@ description: >
info: |
Intl.RelativeTimeFormat.prototype[ @@toStringTag ]
The initial value of the @@toStringTag property is the string value "Object".
The initial value of the @@toStringTag property is the string value "Intl.RelativeTimeFormat".
This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
@ -16,7 +16,7 @@ features: [Intl.RelativeTimeFormat, Symbol.toStringTag]
---*/
verifyProperty(Intl.RelativeTimeFormat.prototype, Symbol.toStringTag, {
value: "Object",
value: "Intl.RelativeTimeFormat",
writable: false,
enumerable: false,
configurable: true