In r390, this error message is logged to the console when destroying a Sprite object with a behavior (e.g. the Solid behavior).
TypeError: this._iScriptInterface._release is not a function at BehaviorInstance.Release (behaviorInstance.js:2:401) ...
The error does not occur in r388 (stable), and can be reproduced with the following code (where the instance returned from runtime.objects.Sprite.getFirstInstance()
is a Sprite object with a behavior):
main.js
runOnStartup(async runtime => {
runtime.addEventListener('beforeprojectstart', () => {
runtime.objects.Sprite.getFirstInstance()?.destroy();
});
});