Strict mode Failing
Expected no error, got SyntaxError: warning: the variable "b" was not declared in anonymous function " 9#"
Features:
- ∅
Expected no error, got SyntaxError: warning: the variable "b" was not declared in anonymous function " 9#"
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 8.7.2-3-a-1gs description: > Strict Mode - ReferenceError is thrown if LeftHandSide evaluate to an unresolvable Reference flags: [onlyStrict] ---*/ assert.throws(ReferenceError, function() { b = 11; });