André Bargull 3291704eb2
Fix multiple test errors
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
2017-04-06 15:30:13 -04:00

41 lines
1.4 KiB
JavaScript

// Copyright 2013 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 11.1.1_32
description: >
Tests that the options minimumSignificantDigits and
maximumSignificantDigits are read in the right sequence.
author: Norbert Lindenberg
---*/
var minimumSignificantDigitsRead = false;
var maximumSignificantDigitsRead = false;
function readMinimumSignificantDigits() {
assert.sameValue(minimumSignificantDigitsRead, false,
"minimumSignificantDigits getter already called");
assert.sameValue(maximumSignificantDigitsRead, false,
"maximumSignificantDigits getter called before minimumSignificantDigits");
minimumSignificantDigitsRead = true;
return 1;
}
function readMaximumSignificantDigits() {
assert.sameValue(maximumSignificantDigitsRead, false,
"maximumSignificantDigits getter already called");
maximumSignificantDigitsRead = true;
return 1;
}
var options = {};
Object.defineProperty(options, "minimumSignificantDigits",
{ get: readMinimumSignificantDigits });
Object.defineProperty(options, "maximumSignificantDigits",
{ get: readMaximumSignificantDigits });
new Intl.NumberFormat("de", options);
assert(minimumSignificantDigitsRead, "minimumSignificantDigits getter was called once");
assert(maximumSignificantDigitsRead, "maximumSignificantDigits getter was called once");