Jan Štola
Jan Štola
> Is there a way to provide Class (or Context) factory to avoid using the same context in different threads? No. You should not use the same (`graal-js`) `ScriptEngine` in...
You are right that `putMember()` and `removeMember()` are not overly fast. The root of the problem is that they are generic (work for any property/member) and as such cannot specialize...
Note that there is no difference between `1` and `1.0` in JavaScript. It is the same value. It is an implementation detail of Nashorn that it returns `Integer` in one...
``` SyntaxError: Unnamed:6:23 Expected ; but found openai const response = await openai.createCompletion({ ^ ``` This syntax error is caused by the fact that you attempt to use `await` outside...
> and the console does not see any error messages Errors from async functions are not printed by default. They reject the promise returned by the async function. You have...
Node that ECMAScript (=JavaScript) specification does not define any object that would allow you to interact with the outer world, i.e., it does not have support for filesystem access, network...
I tried to reproduce this issue i.e. I tried to run a basic `mocha` test using `graaljs`. I admit that it was a challenge but I succeeded eventually. I installed...
> Reopening this, as it seems even if I can install the js engine with `gu install js`, I cannot later find it using new `ScriptEngineManager().getEngineByExtension("js")`. I am sorry, I...
Fixed by https://github.com/oracle/graaljs/commit/7fccb3be23e15f1b9226d44bb0431838b7338782. This change ensures that `Error.prepareStackTrace` and `Error.stackTraceLimit` are used (and the latter defined) in `js.v8-compat` mode only. I.e. the maximum number of stack frames in `error.stack` is...
> I've considered the alternative of a facade guest type, like: > ... > but, constructors can't return other types In fact, constructors (in JavaScript) can return arbitrary objects and...