File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1313,11 +1313,11 @@ var LibraryDylink = {
1313
1313
#if ASSERTIONS
1314
1314
assert ( lib , `Tried to dlsym() from an unopened handle: ${ handle } ` ) ;
1315
1315
#endif
1316
- if ( ! lib . exports . hasOwnProperty ( symbol ) || lib . exports [ symbol ] . stub ) {
1316
+ newSymIndex = Object . keys ( lib . exports ) . indexOf ( symbol ) ;
1317
+ if ( newSymIndex == - 1 || lib . exports [ symbol ] ?. stub ) {
1317
1318
dlSetError ( `Tried to lookup unknown symbol "${ symbol } " in dynamic lib: ${ lib . name } ` )
1318
1319
return 0 ;
1319
1320
}
1320
- newSymIndex = Object . keys ( lib . exports ) . indexOf ( symbol ) ;
1321
1321
#if ! WASM_BIGINT
1322
1322
var origSym = 'orig$' + symbol ;
1323
1323
result = lib . exports [ origSym ] ;
Original file line number Diff line number Diff line change 1
1
{
2
- "a.out.js" : 246044 ,
2
+ "a.out.js" : 246022 ,
3
3
"a.out.nodebug.wasm" : 597767 ,
4
- "total" : 843811 ,
4
+ "total" : 843789 ,
5
5
"sent" : [
6
6
" IMG_Init" ,
7
7
" IMG_Load" ,
You can’t perform that action at this time.
0 commit comments