Skip to content

Commit ab46220

Browse files
committed
hscript.JsInterp fix missing return for 4.2.5 (probably not detecting throw)
1 parent 98bd322 commit ab46220

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hscript/JsInterp.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ class JsInterp extends Interp {
264264
default:
265265
error(EInvalidOp(op));
266266
}
267+
return null;
267268
case EUnop(op, prefix, e):
268269
switch( op ) {
269270
case "!":
@@ -300,6 +301,7 @@ class JsInterp extends Interp {
300301
default:
301302
error(EInvalidOp(op));
302303
}
304+
return null;
303305
case ECall(e, params):
304306
var args = [for( p in params ) exprValue(p)];
305307
switch( Tools.expr(e) ) {

0 commit comments

Comments
 (0)