limit memoisation assignment operator to playground mode
This commit is contained in:
parent
741fcefa31
commit
886d84c18c
2
acorn.js
2
acorn.js
@ -2473,7 +2473,7 @@
|
||||
var expr = parseExprOps(noIn, noLess, isStatement);
|
||||
if (eat(_question)) {
|
||||
var node = startNodeAt(start);
|
||||
if (eat(_eq)) {
|
||||
if (options.playground && eat(_eq)) {
|
||||
var left = node.left = toAssignable(expr);
|
||||
if (left.type !== "MemberExpression") raise(left.start, "You can only use member expressions in memoization assignment");
|
||||
node.right = parseMaybeAssign(noIn);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "acorn-6to5",
|
||||
"description": "Acorn fork used by 6to5",
|
||||
"main": "acorn_csp.js",
|
||||
"version": "0.11.1-14",
|
||||
"version": "0.11.1-15",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "Marijn Haverbeke",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user