We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd214a5 commit 46fef5cCopy full SHA for 46fef5c
ext/js/lib/js.rb
@@ -85,7 +85,7 @@ def respond_to_missing?(sym, include_private)
85
def await
86
sched = JS.promise_scheduler
87
unless sched
88
- raise "Please start Ruby evaluation with RubyVM.eval_async to use JS::Object#await"
+ raise "JS::Object#await can be used only in RubyVM.evalAsync"
89
end
90
# Promise.resolve wrap a value or flattens promise-like object and its thenable chain
91
promise = JS.global[:Promise].resolve(self)
0 commit comments