@agoric/acorn-eventual-send
Advanced tools
Comparing version 1.0.0 to 1.0.1
13
index.js
@@ -13,2 +13,3 @@ const { tokTypes: tt, TokenType } = require('acorn'); | ||
return class extends Parser { | ||
// eslint-disable-next-line camelcase | ||
readToken_tilde() { | ||
@@ -79,3 +80,3 @@ const next1 = this.input.charCodeAt(this.start + 1); | ||
// x ~. [i] = foo := HandledPromise.set(base, i) | ||
method = "set"; | ||
method = 'set'; | ||
args.push(this.parseMaybeAssign()); | ||
@@ -85,3 +86,3 @@ } else { | ||
// Method may change to HandledPromise.delete(base, i) | ||
method = "get"; | ||
method = 'get'; | ||
} | ||
@@ -99,7 +100,7 @@ | ||
callee.computed = false; | ||
callee = this.finishNode(callee, "MemberExpression"); | ||
callee = this.finishNode(callee, 'MemberExpression'); | ||
// Create a WavyDot CallExpression. | ||
const wdot = this.startNodeAtNode(node); | ||
if (method === "get") { | ||
if (method === 'get') { | ||
wdot.maybeDeleteWavyDot = true; | ||
@@ -109,3 +110,3 @@ } | ||
wdot.arguments = args; | ||
return this.finishNode(wdot, "CallExpression"); | ||
return this.finishNode(wdot, 'CallExpression'); | ||
} | ||
@@ -151,3 +152,3 @@ | ||
{ | ||
resolverObject: options.HandledPromise || 'HandledPromise', | ||
HandledPromise: options.HandledPromise || 'HandledPromise', | ||
}, | ||
@@ -154,0 +155,0 @@ Parser, |
{ | ||
"name": "@agoric/acorn-eventual-send", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Eventual send (wavy dot) parser plugin for Acorn", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17343
138