Strict mode Failing
Expected no error, got SyntaxError: warning: the variable "x" was not declared in anonymous function " 9#"
Features:
- ∅
Expected no error, got SyntaxError: warning: the variable "x" was not declared in anonymous function " 9#"
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-typeof-operator-runtime-semantics-evaluation description: Operator "typeof" uses GetValue info: | The typeof Operator Runtime Semantics: Evaluation ... Set val to ? GetValue(val). ... GetValue ( V ): ... If IsUnresolvableReference(V) is true, throw a ReferenceError exception. ---*/ assert.throws(ReferenceError, function() { typeof x.x; });