intl-legacy-constructed-symbol.js (670B)
1 // Copyright 2020 Apple Inc. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-intl.numberformat 6 description: > 7 Tests that [[FallbackSymbol]]'s [[Description]] is "IntlLegacyConstructedSymbol" if normative optional is implemented. 8 author: Yusuke Suzuki 9 features: [intl-normative-optional] 10 ---*/ 11 12 let object = new Intl.NumberFormat(); 13 let newObject = Intl.NumberFormat.call(object); 14 let symbols = Object.getOwnPropertySymbols(newObject); 15 if (symbols.length !== 0) { 16 assert.sameValue(symbols.length, 1); 17 assert.sameValue(symbols[0].description, "IntlLegacyConstructedSymbol"); 18 } 19 20 reportCompare(0, 0);