Skip to content

Commit a264a9e

Browse files
authored
Feedback from #25249 (#25264)
See #25249
1 parent 0b091f6 commit a264a9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/libdylink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ var LibraryDylink = {
13141314
assert(lib, `Tried to dlsym() from an unopened handle: ${handle}`);
13151315
#endif
13161316
newSymIndex = Object.keys(lib.exports).indexOf(symbol);
1317-
if (newSymIndex == -1 || lib.exports[symbol]?.stub) {
1317+
if (newSymIndex == -1 || lib.exports[symbol].stub) {
13181318
dlSetError(`Tried to lookup unknown symbol "${symbol}" in dynamic lib: ${lib.name}`)
13191319
return 0;
13201320
}

test/code_size/test_codesize_hello_dylink_all.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"a.out.js": 246022,
2+
"a.out.js": 246021,
33
"a.out.nodebug.wasm": 597767,
4-
"total": 843789,
4+
"total": 843788,
55
"sent": [
66
"IMG_Init",
77
"IMG_Load",

0 commit comments

Comments
 (0)