From 12104f6d65a0d2ed2866a7e641fbf0dd59821c0a Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Sun, 2 Oct 2022 17:23:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20add=20missing=20`this.`=20to=20`?= =?UTF-8?q?error=5Fargument()`=20calls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/runner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner.js b/src/runner.js index f53cd5d..06cbd99 100644 --- a/src/runner.js +++ b/src/runner.js @@ -320,7 +320,7 @@ class Juicescript_runner { // value if(type === Juicescript.argument_type.VALUE){ if(![Juicescript.argument_type.VARIABLE, Juicescript.argument_type.LITERAL].includes(actual_type)){ - error_argument(number, "expected " + Juicescript.argument_type.name(type) + ", but got " + Juicescript.argument_type.name(actual_type)); + this.error_argument(number, "expected " + Juicescript.argument_type.name(type) + ", but got " + Juicescript.argument_type.name(actual_type)); } return; } @@ -328,7 +328,7 @@ class Juicescript_runner { // COMPARE AGAINST PARSABLE TYPES // if(actual_type !== type){ - error_argument(number, "expected " + Juicescript.argument_type.name(type) + ", but got " + Juicescript.argument_type.name(actual_type)); + this.error_argument(number, "expected " + Juicescript.argument_type.name(type) + ", but got " + Juicescript.argument_type.name(actual_type)); } }