@helios-lang/compiler-utils
Advanced tools
{ | ||
"name": "@helios-lang/compiler-utils", | ||
"version": "0.5.12", | ||
"version": "0.5.13", | ||
"description": "Helios language compiler library", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -486,8 +486,12 @@ import { isUndefined } from "@helios-lang/type-utils" | ||
reader._i = reader.tokens.findIndex((t) => t == this.tokens[this._i]) | ||
if (reader.tokens.length > 0) { | ||
reader._i = reader.tokens.findIndex( | ||
(t) => t == this.tokens[this._i] | ||
) | ||
if (reader._i == -1) { | ||
throw new Error( | ||
"unable to keep TokenReader position in insertSemicolons" | ||
) | ||
if (reader._i == -1) { | ||
throw new Error( | ||
"TokenReader.insertSemicolons(): unable to keep TokenReader position" | ||
) | ||
} | ||
} | ||
@@ -494,0 +498,0 @@ |
158757
0.07%4780
0.08%