Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ on:

jobs:
build:
strategy:
matrix:
haxe-version: [latest, 4.3.7, 4.2.5]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.3.4
haxe-version: ${{ matrix.haxe-version }}
- name: Install haxelib dependencies
run: |
haxelib install hx3compat
Expand Down
2 changes: 1 addition & 1 deletion hscript/Checker.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ class Checker {
switch( e.e ) {
case EField(obj, f):
if( cf.isMethod ) {
switch( callExpr?.e ) {
switch( callExpr == null ? null : callExpr.e ) {
case null:
case ECall(ec,params) if( ec == e ):
e.e = EField(acc,f);
Expand Down
2 changes: 2 additions & 0 deletions hscript/JsInterp.hx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ class JsInterp extends Interp {
default:
error(EInvalidOp(op));
}
return null;
case EUnop(op, prefix, e):
switch( op ) {
case "!":
Expand Down Expand Up @@ -300,6 +301,7 @@ class JsInterp extends Interp {
default:
error(EInvalidOp(op));
}
return null;
case ECall(e, params):
var args = [for( p in params ) exprValue(p)];
switch( Tools.expr(e) ) {
Expand Down