blob: bf0b03b0a99051a834002541493757d11d5aa05c [file] [log] [blame]
// 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: If IsUnresolvableReference(val) is true, return "undefined".
info: |
The typeof Operator
Runtime Semantics: Evaluation
...
If Type(val) is Reference, then
If IsUnresolvableReference(val) is true, return "undefined".
...
---*/
assert.sameValue(
typeof x,
"undefined",
"typeof x === 'undefined'"
);