File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
packages/web-platform/web-core/src/apis Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @lynx-js/web-core " : patch
3
+ ---
4
+
5
+ fix: ` onNativeModulesCall ` && ` onNapiModulesCall ` use getter to get.
Original file line number Diff line number Diff line change @@ -445,16 +445,16 @@ export class LynxView extends HTMLElement {
445
445
nativeModulesCall : (
446
446
...args : [ name : string , data : any , moduleName : string ]
447
447
) => {
448
- if ( this . # onNativeModulesCall) {
449
- return this . # onNativeModulesCall( ...args ) ;
448
+ if ( this . onNativeModulesCall ) {
449
+ return this . onNativeModulesCall ( ...args ) ;
450
450
} else {
451
451
return new Promise ( resolve => {
452
452
this . #cachedNativeModulesCall. push ( { args, resolve } ) ;
453
453
} ) ;
454
454
}
455
455
} ,
456
456
napiModulesCall : ( ...args ) => {
457
- return this . # onNapiModulesCall?.( ...args ) ;
457
+ return this . onNapiModulesCall ?.( ...args ) ;
458
458
} ,
459
459
onError : ( error : Error , release : string , fileName : string ) => {
460
460
this . dispatchEvent (
You can’t perform that action at this time.
0 commit comments