@@ -681,37 +681,37 @@ function fromJS(HLL, obj, isReturnValue, isArgument) {
681
681
}
682
682
}
683
683
684
- function argToJSWithCtx ( ctx , obj ) {
684
+ /*async*/ function argToJSWithCtx ( ctx , obj ) {
685
685
if ( obj instanceof NativeIntArg || obj instanceof NativeUIntArg ) {
686
686
return obj . value ;
687
687
} else if ( obj instanceof NativeNumArg ) {
688
688
return obj . value ;
689
689
} else if ( obj instanceof NativeStrArg ) {
690
690
return obj . value ;
691
691
} else {
692
- return toJSWithCtx ( ctx , obj . $$decont ( ctx ) ) ;
692
+ return /*await*/ toJSWithCtx ( ctx , /*await*/ obj . $$decont ( ctx ) ) ;
693
693
}
694
694
}
695
695
696
- function returnValueToJSWithCtx ( ctx , obj ) {
696
+ /*async*/ function returnValueToJSWithCtx ( ctx , obj ) {
697
697
if ( obj instanceof NativeNumRet ) {
698
698
return obj . value ;
699
699
} else if ( obj instanceof NativeNumArg ) {
700
700
return obj . value ;
701
701
} else if ( typeof obj === 'string' ) {
702
702
return obj ;
703
703
} else {
704
- return toJSWithCtx ( ctx , obj . $$decont ( obj ) ) ;
704
+ return /*await*/ toJSWithCtx ( ctx , /*await*/ obj . $$decont ( obj ) ) ;
705
705
}
706
706
}
707
707
708
- function toJSWithCtx ( ctx , obj ) {
708
+ /*async*/ function toJSWithCtx ( ctx , obj ) {
709
709
const HLL = ctx . $$getHLL ( ) ;
710
- if ( HLL . get ( 'str_box' ) && obj . $$istype ( ctx , HLL . get ( 'str_box' ) ) ) {
710
+ if ( HLL . get ( 'str_box' ) && /*await*/ obj . $$istype ( ctx , HLL . get ( 'str_box' ) ) ) {
711
711
return obj . $$getStr ( ) ;
712
- } else if ( HLL . get ( 'num_box' ) && obj . $$istype ( ctx , HLL . get ( 'num_box' ) ) ) {
712
+ } else if ( HLL . get ( 'num_box' ) && /*await*/ obj . $$istype ( ctx , HLL . get ( 'num_box' ) ) ) {
713
713
return obj . $$getNum ( ) ;
714
- } else if ( HLL . get ( 'js_box' ) && obj . $$istype ( ctx , HLL . get ( 'js_box' ) ) ) {
714
+ } else if ( HLL . get ( 'js_box' ) && /*await*/ obj . $$istype ( ctx , HLL . get ( 'js_box' ) ) ) {
715
715
return obj . $$jsObject ;
716
716
} else if ( obj === HLL . get ( 'true_value' ) ) {
717
717
return true ;
@@ -722,12 +722,12 @@ function toJSWithCtx(ctx, obj) {
722
722
} else if ( obj . $$getBignum ) {
723
723
return BigInt ( obj . $$getBignum ( ) . toString ( ) ) ;
724
724
} else if ( op . isinvokable ( obj ) ) {
725
- return function ( ) {
725
+ return /*async*/ function ( ) {
726
726
const converted = [ null , { } ] ;
727
727
for ( let i = 0 ; i < arguments . length ; i ++ ) {
728
728
converted . push ( fromJSToArgument ( arguments [ i ] ) ) ;
729
729
}
730
- return returnValueToJSWithCtx ( ctx , obj . $$apply ( converted ) ) ;
730
+ return /*await*/ returnValueToJSWithCtx ( ctx , /*await*/ obj . $$apply ( converted ) ) ;
731
731
} ;
732
732
} else if ( obj . $$STable === BOOT . StrArray . $$STable ) {
733
733
return obj . array ;
@@ -2230,8 +2230,8 @@ op.isne_snfg = function(a, b) {
2230
2230
return ( a . normalize ( 'NFC' ) === b . normalize ( 'NFC' ) ) ? 0 : 1 ;
2231
2231
} ;
2232
2232
2233
- op . setjsattr = function ( ctx , obj , attr , value ) {
2234
- return obj . $$jsObject [ attr ] = toJSWithCtx ( ctx , value ) ;
2233
+ op . setjsattr = /*async*/ function ( ctx , obj , attr , value ) {
2234
+ return obj . $$jsObject [ attr ] = /*await*/ toJSWithCtx ( ctx , value ) ;
2235
2235
} ;
2236
2236
2237
2237
op . getjsattr = function ( ctx , obj , attr ) {
0 commit comments