This commit is contained in:
Jaime Humberto Macias Bustamante
2025-06-17 15:27:21 -07:00
parent 04a50580c6
commit 6441acc93d
3 changed files with 28 additions and 24 deletions
+2 -4
View File
@@ -23,7 +23,7 @@ class CustomClassHandler implements IHScriptCustomConstructor implements IHScrip
public var cl:Dynamic;
private var staticInterp:Interp;
private var staticFields:Array<String>;
private var staticFields:Array<String> = [];
public function new(ogInterp:Interp, name:String, fields:Array<Expr>, ?extend:String, ?interfaces:Array<String>) {
this.ogInterp = ogInterp;
@@ -200,9 +200,7 @@ class CustomClassHandler implements IHScriptCustomConstructor implements IHScrip
*/
// I can't believe all these lines of code above got reduced to this sentence.
var _class = new CustomClass(this, args);
return _class;
return new CustomClass(this, args);
}
@:allow(hscript.Interp)