Skip to content

Commit 26cf4d5

Browse files
author
Max Brunsfeld
authored
Fix typo in loadDynamicLibrary (#12968)
1 parent f388f6f commit 26cf4d5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,3 +526,4 @@ a license to everyone to use it as detailed in LICENSE.)
526526
* Wouter van Oortmerssen <wvo@google.com> (copyright owned by Google, LLC)
527527
* Alexey Sokolov <sokolov@google.com> (copyright owned by Google, LLC)
528528
* Ivan Romanovski <ivan.romanovski@gmail.com>
529+
* Max Brunsfeld <maxbrunsfeld@gmail.com>

src/library_dylink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ var LibraryDylink = {
533533
if (flags.fs) {
534534
var libData = flags.fs.readFile(libFile, {encoding: 'binary'});
535535
if (!(libData instanceof Uint8Array)) {
536-
libData = new Uint8Array(lib_data);
536+
libData = new Uint8Array(libData);
537537
}
538538
return flags.loadAsync ? Promise.resolve(libData) : libData;
539539
}

0 commit comments

Comments
 (0)