How to add a behavior from another behavior in javascript?


I’m creating a little behavior for sprite’s objects and I want it to use another behavior (Tween behavior).
In my OnCreated event in my behavior I can find If the current object has the Tween behavior set on it.
I’d like to add the Tween Behavior on the object if it don’t have it.

I tried the object.addNewBehavior() and new gdjs.TweenRuntimeBehavior() but I don’t know what to put in the BehaviorData. I don’t find more informations on this data type.

I need some help to set an existing behavior on an object in javascript.
Thank you.