Open WebReflection opened 11 months ago
@WebReflection you can just fork it and provide samplels and actuall impl of it
I'm afraid I am going on vacation next couple of weeks and I have other issues to tackle internally (before that) ... but if this is the answer, I will eventually try to do what you suggested, although it will surely take a long while.
@WebReflection im not a contributor and not an author. It seems that original wasmoon creator not contributing too much now. So if you want changes it seems much easier to just bringh it on your own (as i do).
@ParadiseFallen oh no, we clarified that aspect already https://github.com/ceifa/wasmoon/issues/85#issuecomment-1668591981
@WebReflection fine
There's a lengthy discussion in TC39 around classes instantiations and I've realized wasmoon wraps these as arrow function which can't ever be used with
new
in general, but it also usesClass.create()
instead of the more acknowledged and developer friendly (because it's backed by JSnew
syntax)Class.new(...args)
pattern.Beside the TC39 discussion though, it would be very community friendly if all interpreters with instantiation ability would follow a common pattern such as
Class.new(...args)
is, compared with.create(...)
in wasmoon orpm.new(pm.Thing)(...args)
in PythonMonkey.As summary: please consider offering
.new(...args)
convention to instantiate JS objects within the wasmoon runtime, thank you!