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
I am trying to get the final string value out of JS world and into Go world. (Note: In my actual real-world project, doSomething() won't resolve immediately)
This discussion was converted from issue #648 on January 23, 2025 13:39.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
@dop251
I have this JS script
I am trying to get the final string value out of JS world and into Go world. (Note: In my actual real-world project,
doSomething()
won't resolve immediately)This works (returns
https://example.com/
):However this does not (returns an unresolved promise, that never resolves):
NOTE: v, err := vm.RunString("await testpromise()") produces a JS error.
Beta Was this translation helpful? Give feedback.
All reactions