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 (C) 2020 ExE Boss. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-createbuiltinfunction description: Collator bound compare function property order info: | Set order: "length", "name" includes: [compareArray.js] ---*/ var compareFn = new Intl.Collator().compare; assert.compareArray( Object.getOwnPropertyNames(compareFn), ['length', 'name'] );