Strict mode Failing
Expected no error, got SyntaxError: warning: the variable "Intl" was not declared in function "global"
non-Strict mode Failing
Expected no error, got ReferenceError: Property 'Intl' doesn't exist
Features:
- ∅
Expected no error, got SyntaxError: warning: the variable "Intl" was not declared in function "global"
Expected no error, got ReferenceError: Property 'Intl' doesn't exist
// Copyright 2016 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. /*--- esid: sec-Intl.PluralRules.prototype.select description: Tests that select function returns "other" for non finite values. info: | 1.1.4. ResolvePlural (pluralRules, n) (...) 1.1.4_3. If isFinite(n) is false, then 1.1.4_3.a. Return "other". author: Zibi Braniecki ---*/ var invalidValues = [NaN, Infinity, -Infinity]; var pr = new Intl.PluralRules(); invalidValues.forEach(function (value) { assert.sameValue(pr.select(value), "other"); });