I’ve mostly moved over to catspeak v3 in my current project… Came across a few oddities that I wasn’t getting previously.
But from my testing, it seems that catspeak isn’t fond of static methods from a constructor.
If I have a constructor that I pass to Catspeak as a function like
Catspeak.addFunction("Construct", function() {
return new Construct();
});
Trying to do this in Catspeak results in it trying to access the compiled Catspeak program as the scope, and not the constructor instance. Hence causing an error/modifying the wrong instance.
I’ve mostly moved over to catspeak v3 in my current project… Came across a few oddities that I wasn’t getting previously. But from my testing, it seems that catspeak isn’t fond of static methods from a constructor.
If I have a constructor that I pass to Catspeak as a function like
And Construct has
Trying to do this in Catspeak results in it trying to access the compiled Catspeak program as the scope, and not the constructor instance. Hence causing an error/modifying the wrong instance.