dokar3

Results 41 comments of dokar3

> So cancelling evaluate is not like calling process.exit(), instead, quickJS.close() plays the same role as process.exit(). Interesting point, this is also quite right, if you have multiple `evaluate` calls...

This makes sense. As I always use it for executing one-shot scripts, so this library hasn't focused on long-live runtime. I haven't benchmarked the runtime overhead, but if you're primarily...

Yeah, reusing is currently possible but getting it to work correctly and work well is kinda challenging, like something discussed in #108.

Any minimal code snippet to reproduce it? Does this only happen on iOS? Have you tried to increase `maxStackSize` to a larger number? If this still only happens on iOS,...

You can try: ```kotlin quickJs.maxStackSize = 512 * 1024 // Or something larger, defaults to 256 KB ```

I'm not familiar with quickjs's stack size but I think this is okay, Zipline also uses a large stack size (6 MB): https://github.com/cashapp/zipline/blob/55aa20f5b4cdae3753e92535afe41c670f851b1a/zipline/src/hostMain/kotlin/app/cash/zipline/Zipline.kt#L202

I'm not sure if this is possible to fix since 'TypeError: not a function' comes from the engine.

The location? I don't really have an impression of this.

That's weird, Gradle build works on both GitHub's macOS x64 runner and macOS aarch64 runner. Have you set these things in [build.yaml](https://github.com/dokar3/quickjs-kt/blob/main/.github/workflows/build.yaml)?