blob: 4cc54455e131fb86ffcd494202cae044eb8551cb [file] [log] [blame]
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
let descriptor;
for (const [obj, tag] of
[[Intl, "Intl"],
[Intl.Collator.prototype, "Intl.Collator"],
[Intl.DateTimeFormat.prototype, "Intl.DateTimeFormat"],
[Intl.DisplayNames.prototype, "Intl.DisplayNames"],
[Intl.Locale.prototype, "Intl.Locale"],
[Intl.ListFormat.prototype, "Intl.ListFormat"],
[Intl.NumberFormat.prototype, "Intl.NumberFormat"],
[Intl.RelativeTimeFormat.prototype, "Intl.RelativeTimeFormat"],
[Intl.PluralRules.prototype, "Intl.PluralRules"],
]) {
descriptor = Object.getOwnPropertyDescriptor(obj,
Symbol.toStringTag);
assertEquals(tag, descriptor.value);
assertFalse(descriptor.writable);
assertFalse(descriptor.enumerable);
assertTrue(descriptor.configurable);
}