diff options
Diffstat (limited to 'js/src/tests/test262/language/expressions/object/not-defined.js')
-rw-r--r-- | js/src/tests/test262/language/expressions/object/not-defined.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/expressions/object/not-defined.js b/js/src/tests/test262/language/expressions/object/not-defined.js new file mode 100644 index 0000000000..b8a7d4d33c --- /dev/null +++ b/js/src/tests/test262/language/expressions/object/not-defined.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es6id: 12.2.5 +description: > + Throws when IdentifierReference is undefined +---*/ + +assert.throws(ReferenceError, function() { + var o = {notDefined}; +}); + +reportCompare(0, 0); |