Alex Korn
Alex Korn
> We've developed a workaround that discovers the runtime class name through `.__proto__.constructor.name`: > > ``` > use wasm_bindgen::convert::FromWasmAbi; > pub fn generic_of_jsval(js: JsValue, classname: &str) -> Result { >...
Got the same problem ) Our solution for now was to turn off minification for the library (by setting it as external dep in webpack and linking it manually in...
I wrapped the solution in dirty proc macro: _src/lib.rs_ ``` extern crate proc_macro; use proc_macro::TokenStream; use proc_macro2::{Span, TokenStream as TokenStream2}; use quote::quote; use syn::{parse_macro_input, Data, DeriveInput, Error, Fields}; macro_rules! derive_error...
No, I have not, feel free to use it as you wish, taking in consideration that the solution itself belongs to aweinstock314 =)
What about using unsafe_clone() for obtaining copy of JNIEnv used only for constructing exception? like this: ``` let mut env_copy = unsafe { env.unsafe_clone() }; match std::panic::catch_unwind(..function_logic..) { Ok(result) =...
@argv-minus-one Thank you for the answer. I get the point that we're creating local references during throw invocation, but do I grok reference frames correctly: reference frame of JNIEnv that...
@binaek89 Encountered the same with Angular 9 project and used similar solution, AMD definition lacks `crypto` dependency