Skip to content

Commit

Permalink
Merge pull request #41 from pietro-lopes/1.20/dev
Browse files Browse the repository at this point in the history
Fixed some general concurrency issue
  • Loading branch information
LatvianModder authored Dec 9, 2023
2 parents 309719b + dab9151 commit 9332a65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public ArrowFunction(Context cx, Scriptable scope, Callable targetFunction, Scri
}

@Override
public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) {
public synchronized Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) {
Scriptable callThis = boundThis != null ? boundThis : ScriptRuntime.getTopCallScope(cx);
return targetFunction.call(cx, scope, callThis, args);
}
Expand Down

0 comments on commit 9332a65

Please sign in to comment.