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
browser.script.iife.js:2731 Uncaught Error: /bundle/gems/js-2.6.0/lib/js.rb:86:in `await': JS::Object#await can be called only from RubyVM#evalAsync or RbValue#callAsync JS API
If you are using browser.script.iife.js, please ensure that you specify `data-eval="async"` in your script tag
e.g. <script type="text/ruby" data-eval="async">puts :hello</script>
Or <script type="text/ruby" data-eval="async" src="path/to/script.rb"></script> (RuntimeError)
/bundle/gems/js-2.6.0/lib/js.rb:240:in `await'
eval_async:9:in `block in <main>'
at checkStatusTag (browser.script.iife.js:2731:21)
at browser.script.iife.js:2766:11
at wrapRbOperation (browser.script.iife.js:2738:18)
at callRbMethod (browser.script.iife.js:2764:14)
at RbValue.call (browser.script.iife.js:2547:30)
at browser.script.iife.js:2322:38
Workaround
Wrap the block with Fiber.new do ... end.transfer.
Reproducer
Workaround
Wrap the block with
Fiber.new do ... end.transfer
.Solutions
We have several options to solve the issue
callAsync
instead ofcall
call
/callAsync
andeval
/evalAsync
The text was updated successfully, but these errors were encountered: