Skip to content
Snippets Groups Projects
Commit de416c28 authored by Ujjwal Sharma's avatar Ujjwal Sharma Committed by Rick Waldron
Browse files

intl: increase coverage from the NumberFormat constructor

Improve coverage for the Intl.NumberFormat constructor by testing that
it accepts Array-like objects and handles them properly.
parent cd55e309
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2018 Ujjwal Sharma. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-initializenumberformat
description: >
Tests that the Intl.NumberFormat constructor accepts Array-like values for the
locales argument and treats them well.
---*/
const actual = Intl.NumberFormat({
length: 1,
1: 'en-US'
});
const expected = Intl.NumberFormat(['en-US']);
assert.sameValue(actual.resolvedOptions(), expected.resolvedOptions());
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment