Marc Rousavy
Marc Rousavy
The example will be rewritten soon.
> remove these useless info I think the type of error and stacktrace is very important for library devs, so this should absolutely be part of the JS Error. But...
Theoretically we can also add `stacktrace` and `type` in Swift: - `Thread.callStackSymbols`: ``` 0 MyApp 0x0000000100000abc functionC() + 44 1 MyApp 0x0000000100000a50 functionB() + 32 2 MyApp 0x00000001000009f0 functionA() +...
`Error.prototype.name` could be our `type` property 🤷
`Error` is a type defined by JS, so I can't add anything there.
Yea this is what we are doing in the PR linked above (https://github.com/mrousavy/nitro/pull/1055)
> We already have an API that is similar to JSI for which we have 4 different JS engines integrated with it Off-topic, but I'm curious what 4 engines you...
I think this has been fixed in latest V3.
After reading ["Exposing Swift APIs to C++"](https://www.swift.org/documentation/cxx-interop/), it seems like this should be supported - their example calls a Swift function from C++, which uses a C++ type:  So...