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: NumberFormat bound format function property order info: | Set order: "length", "name" includes: [compareArray.js] ---*/ var formatFn = new Intl.NumberFormat().format; assert.compareArray( Object.getOwnPropertyNames(formatFn), ['length', 'name'] );