2020-06-22 20:27:41 +02:00
|
|
|
// Copyright 2020 Salesforce.com, Inc. All rights reserved.
|
2019-08-05 17:10:25 +02:00
|
|
|
// 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
|
2020-06-22 20:27:41 +02:00
|
|
|
|
|
|
|
It is a Syntax Error if any code matches this production.
|
2019-08-05 17:10:25 +02:00
|
|
|
features: [optional-chaining]
|
|
|
|
negative:
|
|
|
|
phase: parse
|
2022-01-06 13:01:51 +01:00
|
|
|
type: SyntaxError
|
2019-08-05 17:10:25 +02:00
|
|
|
---*/
|
|
|
|
|
|
|
|
$DONOTEVALUATE();
|
|
|
|
|
2020-06-22 20:27:41 +02:00
|
|
|
null?.fn`hello`;
|