Don't add instruction to pop custom event args if no args were passed
@@ -2169,7 +2169,9 @@ class ScriptBuilder {
const scriptRef = this._compileSubScript("custom", script, { argLookup });
this._callFar(scriptRef);
+ if (argsLen > 0) {
this._stackPop(argsLen);
+ }
this._addNL();
};
