Skip to content

Commit 06748b0

Browse files
authored
Fix typo in libdylink.js (#24233)
Fixes a minor typo. This code block is only used when `-sDYLINK_DEBUG` is passed.
1 parent 533d492 commit 06748b0

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
@@ -667,7 +667,7 @@ var LibraryDylink = {
667667
}
668668
#if DYLINK_DEBUG
669669
dbg(`loadModule: memory[${memoryBase}:${memoryBase + metadata.memorySize}]` +
670-
` table[${tableBasex}:${tableBase + metadata.tableSize}]`);
670+
` table[${tableBase}:${tableBase + metadata.tableSize}]`);
671671
#endif
672672

673673
// This is the export map that we ultimately return. We declare it here

test/test_other.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,7 +2320,7 @@ def test_dylink_dependencies(self):
23202320
''')
23212321
self.emcc('side2.c', ['-fPIC', '-sSIDE_MODULE', '-olibside2.so'])
23222322
self.emcc('side1.c', ['-fPIC', '-sSIDE_MODULE', '-olibside1.so', 'libside2.so'])
2323-
cmd = [EMCC, 'main.c', '-fPIC', '-sMAIN_MODULE=2', 'libside1.so']
2323+
cmd = [EMCC, 'main.c', '-fPIC', '-sMAIN_MODULE=2', '-sDYLINK_DEBUG', 'libside1.so']
23242324

23252325
# Unless `.` is added to the library path the libside2.so won't be found.
23262326
err = self.expect_fail(cmd)
@@ -2360,7 +2360,7 @@ def test_dylink_dependencies_rpath(self):
23602360
''')
23612361
self.emcc('side2.c', ['-fPIC', '-sSIDE_MODULE', '-olibside2.so'])
23622362
self.emcc('side1.c', ['-fPIC', '-sSIDE_MODULE', '-Wl,-rpath,$ORIGIN', '-olibside1.so', 'libside2.so'])
2363-
cmd = [EMCC, 'main.c', '-fPIC', '-sMAIN_MODULE=2', 'libside1.so']
2363+
cmd = [EMCC, 'main.c', '-fPIC', '-sMAIN_MODULE=2', '-sDYLINK_DEBUG', 'libside1.so']
23642364

23652365
# Unless `.` is added to the library path the libside2.so won't be found.
23662366
err = self.expect_fail(cmd)

0 commit comments

Comments
 (0)