-This means that instantiating a struct defined in Rust would *always* entail using JavaScript's [`new`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new) operator on the shim class, irrespective of whether the object is being instantiated from within JavaScript or WASM (if the latter, there must necessarily be a call to an imported function in order to trigger such behaviour; the result would therefore produce a wrapped `JsValue` that indirectly represents the instantiated WASM-native object: this wrapper should be a [smart pointer](https://doc.rust-lang.org/book/ch15-00-smart-pointers.html), implementing [`std::ops::Deref`](https://doc.rust-lang.org/std/ops/trait.Deref.html) for the underlying struct in a manner that avoids FFI roundtrips in order to obtain the boxed `WasmRefCell`).
0 commit comments