mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
WIP
This commit is contained in:
@@ -367,7 +367,7 @@ export const eval_modules = (
|
||||
}
|
||||
|
||||
const set_promise_status = value => {
|
||||
if(value instanceof Promise.Original) {
|
||||
if(value instanceof Promise) {
|
||||
// record stack for async calls, so expand calls works sync
|
||||
set_record_call()
|
||||
return value
|
||||
@@ -988,7 +988,7 @@ const do_eval_frame_expr = (node, scope, callsleft) => {
|
||||
ok = true
|
||||
value = - expr.result.value
|
||||
} else if(node.operator == 'await') {
|
||||
if(expr.result.value instanceof globalThis.run_window.Promise.Original) {
|
||||
if(expr.result.value instanceof globalThis.run_window.Promise) {
|
||||
const status = expr.result.value.status
|
||||
if(status == null) {
|
||||
// Promise must be already resolved
|
||||
|
||||
Reference in New Issue
Block a user