mirror of
https://github.com/tc39/test262.git
synced 2025-10-17 13:59:03 +02:00
Tests doesn't use async functionality and don't call $DONE, so remove "async" flag: - src/params/error/async-gen-named-func-expr.template - test/language/expressions/async-generator/params-named-dflt-abrupt.js - test/language/expressions/async-generator/params-named-dflt-ref-later.js - test/language/expressions/async-generator/params-named-dflt-ref-self.js Intl.PluralRules.prototype is no longer a Intl.Prototype instance: - test/intl402/PluralRules/prototype/prototype.js Intl.PluralRules throws an error when called as a function: - test/intl402/PluralRules/undefined-newtarget-throws.js Module namespace objects call OrdinaryDelete for symbol properties: - test/language/module-code/namespace/internals/delete-non-exported.js Async generators no longer retrieves "done" property twice: - src/async-generators/yield-star-async-next.case - src/async-generators/yield-star-async-return.case - src/async-generators/yield-star-async-throw.case Minor units of CLF is 4, so we need to test with maximumFractionDigits=3 to get an error: - test/intl402/NumberFormat/dft-currency-mnfd-range-check-mxfd.js DateTimeFormat.prototype.formatToParts length property was changed from 0 to 1: - test/intl402/DateTimeFormat/prototype/formatToParts/length.js minimumSignificantDigits and maximumSignificantDigits properties are only retrieved once: - test/intl402/NumberFormat/11.1.1_32.js
28 lines
843 B
JavaScript
28 lines
843 B
JavaScript
// Copyright 2016 Mozilla Corporation. All rights reserved.
|
|
// This code is governed by the license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-Intl.PluralRules
|
|
description: Tests that PluralRules throws when called as a function
|
|
author: Zibi Braniecki
|
|
includes: [testIntl.js]
|
|
---*/
|
|
|
|
assert.throws(TypeError, function() {
|
|
Intl.PluralRules();
|
|
}, "Intl.PluralRules throws when called as a function");
|
|
|
|
assert.throws(TypeError, function() {
|
|
Intl.PluralRules.call(undefined);
|
|
}, "Intl.PluralRules throws when called as a function with |undefined| as this-value");
|
|
|
|
testWithIntlConstructors(function (Constructor) {
|
|
var obj = new Constructor();
|
|
|
|
assert.throws(TypeError, function() {
|
|
Intl.PluralRules.call(obj)
|
|
}, "Intl.PluralRules throws when called as a function with an Intl-object as this-value");
|
|
|
|
return true;
|
|
});
|