Source code
Revision control
Copy as Markdown
Other Tools
// Copyright 2020 Apple Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.datetimeformat
description: >
Tests that [[FallbackSymbol]]'s [[Description]] is "IntlLegacyConstructedSymbol" if normative optional is implemented.
author: Yusuke Suzuki
features: [intl-normative-optional]
---*/
let object = new Intl.DateTimeFormat();
let newObject = Intl.DateTimeFormat.call(object);
let symbols = Object.getOwnPropertySymbols(newObject);
assert(symbols.some((symbol) => symbol.description === "IntlLegacyConstructedSymbol"));