You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
p-bakker
changed the title
Cannot call method on Object returned by evalCode
QuickJS-NG: Cannot call method on Object returned by evalCode
Nov 20, 2024
@justjake Any idea? Is quite annoying having to make all .evalCode(...) calls to assign their result to some globalThis property and then making an additional call to get the value of that global variable
Seem that its an issue with determining the type? If I modify my call to .evalCode to explicitly send in {type: 'global'} as the 3rd param, then all of a sudden it starts to work properly...
When using the QuickJS-NG variant, the return value is always an Object (
{}
)When using the regular quickjs variant, you get back the actual value returned by .evalCode
The text was updated successfully, but these errors were encountered: