fixed Promise return in the REPL by using a wrapper object in async std.evalScript() (github issue #231)

This commit is contained in:
Fabrice Bellard
2024-02-03 15:47:42 +01:00
parent c6cc6a9a5e
commit 00967aac24
4 changed files with 20 additions and 5 deletions

View File

@@ -379,7 +379,9 @@ optional properties:
stack frames below the evalScript.
@item async
Boolean (default = false). If true, @code{await} is accepted in the
script and a promise is returned.
script and a promise is returned. The promise is resolved with an
object whose @code{value} property holds the value returned by the
script.
@end table
@item loadScript(filename)