diff options
Diffstat (limited to 'deps/v8/test/intl/date-format/resolved-options-unwrap.js')
-rw-r--r-- | deps/v8/test/intl/date-format/resolved-options-unwrap.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/v8/test/intl/date-format/resolved-options-unwrap.js b/deps/v8/test/intl/date-format/resolved-options-unwrap.js new file mode 100644 index 0000000000..2aa4064802 --- /dev/null +++ b/deps/v8/test/intl/date-format/resolved-options-unwrap.js @@ -0,0 +1,11 @@ +// Copyright 2018 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. + +// Test the Intl.DateTimeFormat.prototype.resolvedOptions will properly handle +// 3. Let dtf be ? UnwrapDateTimeFormat(dtf). +var x = Object.create(Intl.DateTimeFormat.prototype); +x = Intl.DateTimeFormat.call(x, 'en'); + +var resolvedOptions = Intl.DateTimeFormat.prototype.resolvedOptions.call(x); +assertEquals(resolvedOptions.locale, 'en') |