diff options
Diffstat (limited to 'js/src/tests/test262/intl402/DateTimeFormat/prototype/format/format-function-property-order.js')
-rw-r--r-- | js/src/tests/test262/intl402/DateTimeFormat/prototype/format/format-function-property-order.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/DateTimeFormat/prototype/format/format-function-property-order.js b/js/src/tests/test262/intl402/DateTimeFormat/prototype/format/format-function-property-order.js new file mode 100644 index 0000000000..78fcf6950b --- /dev/null +++ b/js/src/tests/test262/intl402/DateTimeFormat/prototype/format/format-function-property-order.js @@ -0,0 +1,18 @@ +// Copyright (C) 2020 ExE Boss. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-createbuiltinfunction +description: DateTimeFormat bound format function property order +info: | + Set order: "length", "name" +includes: [compareArray.js] +---*/ + +var formatFn = new Intl.DateTimeFormat().format; + +assert.compareArray( + Object.getOwnPropertyNames(formatFn), + ['length', 'name'] +); + +reportCompare(0, 0); |