Strict mode Failing
Expected no error, got SyntaxError: warning: the variable "x" was not declared in function "global"
Features:
- ∅
Expected no error, got SyntaxError: warning: the variable "x" was not declared in function "global"
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Boolean.prototype has the attribute DontEnum esid: sec-boolean.prototype description: Checking if enumerating the Boolean.prototype property fails ---*/ for (x in Boolean) { assert.notSameValue(x, "prototype", 'The value of x is not "prototype"'); } assert( !Boolean.propertyIsEnumerable('prototype'), 'The value of !Boolean.propertyIsEnumerable(\'prototype\') is expected to be true' );