diff options
| author | Maximilian Goldstein <max.goldstein@qt.io> | 2021-04-09 15:03:20 +0200 |
|---|---|---|
| committer | Maximilian Goldstein <max.goldstein@qt.io> | 2021-04-13 07:59:54 +0000 |
| commit | 7d1cf05c547a636495b2731c4fc2842a01849064 (patch) | |
| tree | 40bc5864e3df0edd9960b8acfdc769ff894a24ba /test/language/expressions/optional-chaining/early-errors-tail-position-null-op-template-string.js | |
| parent | 5a105134b9fdf9abc0dc12dc3e44027529634715 (diff) | |
| download | qtdeclarative-testsuites-7d1cf05c547a636495b2731c4fc2842a01849064.tar.gz | |
Add optional chaining tests
Change-Id: Ia87313a2756dfbc3d90128ac77cd4dc6c8c137df
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'test/language/expressions/optional-chaining/early-errors-tail-position-null-op-template-string.js')
| -rw-r--r-- | test/language/expressions/optional-chaining/early-errors-tail-position-null-op-template-string.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/language/expressions/optional-chaining/early-errors-tail-position-null-op-template-string.js b/test/language/expressions/optional-chaining/early-errors-tail-position-null-op-template-string.js new file mode 100644 index 000000000..1bf4f43cc --- /dev/null +++ b/test/language/expressions/optional-chaining/early-errors-tail-position-null-op-template-string.js @@ -0,0 +1,22 @@ +// Copyright 2020 Salesforce.com, Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-OptionalExpression +description: > + template string passed to tail position of optional chain +info: | + Static Semantics: Early Errors + OptionalChain: + ?.TemplateLiteral + OptionalChain TemplateLiteral + + It is a Syntax Error if any code matches this production. +features: [optional-chaining] +negative: + type: SyntaxError + phase: parse +---*/ + +$DONOTEVALUATE(); + +null?.`hello`; |
