diff --git a/lib/error.js b/lib/error.js index bba8ccd2..9bba3960 100644 --- a/lib/error.js +++ b/lib/error.js @@ -79,8 +79,8 @@ function error( source[position].type !== "eof" ? source[position].line : source.length > 1 - ? source[position - 1].line - : 1; + ? source[position - 1].line + : 1; const precedingLastLine = lastLine( tokensToText(sliceTokens(-maxTokens), { precedes: true }), diff --git a/lib/productions/extended-attributes.js b/lib/productions/extended-attributes.js index 6906af72..a0fbaf66 100644 --- a/lib/productions/extended-attributes.js +++ b/lib/productions/extended-attributes.js @@ -155,8 +155,8 @@ export class SimpleExtendedAttribute extends Base { const value = this.params.rhsIsList ? list : this.params.tokens.secondaryName - ? unescape(tokens.secondaryName.value) - : null; + ? unescape(tokens.secondaryName.value) + : null; return { type, value }; } get arguments() { diff --git a/lib/productions/iterable.js b/lib/productions/iterable.js index d5fc8eed..cfa93c54 100644 --- a/lib/productions/iterable.js +++ b/lib/productions/iterable.js @@ -22,8 +22,8 @@ export class IterableLike extends Base { tokens.base = tokens.readonly ? tokeniser.consume("maplike", "setlike") : tokens.async - ? tokeniser.consume("iterable") - : tokeniser.consume("iterable", "maplike", "setlike"); + ? tokeniser.consume("iterable") + : tokeniser.consume("iterable", "maplike", "setlike"); if (!tokens.base) { tokeniser.unconsume(start_position); return; diff --git a/lib/productions/type.js b/lib/productions/type.js index 53e78000..d4d64165 100644 --- a/lib/productions/type.js +++ b/lib/productions/type.js @@ -231,8 +231,8 @@ for more information.`; const target = this.union ? this : typedef && typedef.type === "typedef" - ? typedef.idlType - : undefined; + ? typedef.idlType + : undefined; if (target && this.nullable) { // do not allow any dictionary const { reference } = idlTypeIncludesDictionary(target, defs) || {};