📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

@helios-lang/compiler-utils

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@helios-lang/compiler-utils - npm Package Compare versions

Comparing version

to
0.5.13

{
"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 @@