From 9c3069d62e46f3f181d11935ca3806e7ddefa939 Mon Sep 17 00:00:00 2001 From: Jaime Humberto Macias Bustamante Date: Fri, 19 Sep 2025 16:53:03 -0700 Subject: [PATCH] forgot this --- hscript/Interp.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hscript/Interp.hx b/hscript/Interp.hx index 1df4dc7..5deca70 100644 --- a/hscript/Interp.hx +++ b/hscript/Interp.hx @@ -605,6 +605,8 @@ class Interp { } public inline function warn(e:#if hscriptPos ErrorDef #else Error #end) { + #if hscriptPos var e = new Error(e, curExpr.pmin, curExpr.pmax, curExpr.origin, curExpr.line); #end + if(warnHandler != null) warnHandler(e); else