Sam Cao

Results 319 comments of Sam Cao

You cannot set a script as a string literal directly, hoping it works. Because it remains a string in V8. You have to set a function which has already been...

Thank you for reporting this. It's interesting that the handle could be negative in some Android environments. You are welcome submitting a PR to the dev branch. Cheers!

It was fixed by this [commit](https://github.com/caoccao/Javet/commit/65554031b1a2eade7f22a1930d2966ab48f00ab5).

I think that's possible. You are welcome taking a try.

It's up to you to decide to either create a listener or set an env var to tell Javet to suppress that error. In you case, I would suggest you...

I wonder if you mind trying the dog food from [Javet](https://github.com/caoccao/Javet/) (Java + V8). Its first Android [snapshot build](https://github.com/caoccao/Javet/issues/79) is under community test.

> I don't believe _Javet_ is in any way related. We simply use Java infrastructure (e.g. `sun.misc.Unsafe`) that is available on compatible JREs, but not on Android. No problem. Actually,...

> Ok, if it can polyfill `Unsafe` and other JDK9+ feature (Method handles, etc.) then it might be an option to go that route. For now, in the dev branch,...

@frank-dspeed Thank you for the info and suggestions. Regarding JIT, the V8 in Javet is JIT enabled. So far, there's no user complaining it's blocked by Google Play or other...

Why don't you use the genuine Node.js in your project to avoid that CPU usage doubled? > I've verified it, CPU at around 100% after warmup。 but I have a...