Status: Untriaged
Owner: ----
New issue 4183 by [email protected]: Tagged template incorrectly restricted
from CallExpressions
https://code.google.com/p/v8/issues/detail?id=4183
Template tag references may be derived from MemberExpressions or
CallExpressions, but V8 does not support the latter:
$ d8 --harmony -e '(function() { return print; })()``'
unnamed:1: SyntaxError: Unexpected template string
(function() { return print; })()``
^^
SyntaxError: Unexpected template string
from ES6 12.3.7.1 (Tagged Templates, Runtime Semantics: Evaluation) [1]:
MemberExpression : MemberExpression TemplateLiteral
1. Let tagRef be the result of evaluating MemberExpression.
2. Let thisCall be this MemberExpression.
3. Let tailCall be IsInTailPosition(thisCall). (See 14.6.1)
4. Return EvaluateCall(tagRef, TemplateLiteral, tailCall).
CallExpression : CallExpression TemplateLiteral
1. Let tagRef be the result of evaluating CallExpression.
2. Let thisCall be this CallExpression.
3. Let tailCall be IsInTailPosition(thisCall). (See 14.6.1)
4. Return EvaluateCall(tagRef, TemplateLiteral, tailCall).
Version: 8c57b2e16d11af541a64ef876ff2133cdd444233 (Fri Jun 12 08:22:29 2015
-0700)
OS: Ubuntu Linux
Architecture: x64
[1]
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tagged-templates-runtime-semantics-evaluation
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.