fix promise patch

This commit is contained in:
Dmitry Vasilev
2023-02-07 19:36:47 +08:00
parent be4d104dc6
commit 356cb09f92
3 changed files with 12 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ const io_patch = (cxt, obj, method, name, use_context = false) => {
// }
if(cxt.io_cache_is_replay_aborted) {
// Try to finish fast
throw new Error('io recording aborted')
throw new Error('io replay aborted')
} else if(cxt.io_cache_is_recording) {
let ok, value, error
const has_new_target = new.target != null