Skip to content

Commit ec4e3b3

Browse files
committed
Fix _wrapThenable/_unwrapThenable
1 parent 9e9ef25 commit ec4e3b3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/lunarml/mlinit-cps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ function _ThenableWrapper(wrapped) {
589589
this.payload = wrapped;
590590
}
591591
//END
592-
//BEGIN _wrapThenable
592+
//BEGIN _wrapThenable: _ThenableWrapper
593593
function _wrapThenable(x) {
594594
if (x != null && (typeof x === "object" || typeof x === "function")) {
595595
try {
@@ -602,7 +602,7 @@ function _wrapThenable(x) {
602602
return x;
603603
}
604604
//END
605-
//BEGIN _unwrapThenable
605+
//BEGIN _unwrapThenable: _ThenableWrapper
606606
function _unwrapThenable(x) {
607607
return x instanceof _ThenableWrapper ? x.payload : x;
608608
}

lib/lunarml/mlinit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ function _ThenableWrapper(wrapped) {
639639
this.payload = wrapped;
640640
}
641641
//END
642-
//BEGIN _wrapThenable
642+
//BEGIN _wrapThenable: _ThenableWrapper
643643
function _wrapThenable(x) {
644644
if (x != null && (typeof x === "object" || typeof x === "function")) {
645645
try {
@@ -652,7 +652,7 @@ function _wrapThenable(x) {
652652
return x;
653653
}
654654
//END
655-
//BEGIN _unwrapThenable
655+
//BEGIN _unwrapThenable: _ThenableWrapper
656656
function _unwrapThenable(x) {
657657
return x instanceof _ThenableWrapper ? x.payload : x;
658658
}

0 commit comments

Comments
 (0)