diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-23 17:01:58 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-23 17:01:58 -0700 |
commit | 1844ec1caf6b0068fa407cce9b9b733eb366f7c0 (patch) | |
tree | ce5fa93b7a808b0f94be99c25b6c2178449485c6 /src/library.js | |
parent | 9be4b666462e7fbab8714be939a9d2a3051d409b (diff) |
use readFile in dlopen, instead of hackish internals-only usage of contents; should fix #2445HEAD1.20.0-0amatus1master
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index 1f7fd37d..637bfda8 100644 --- a/src/library.js +++ b/src/library.js @@ -4784,7 +4784,7 @@ LibraryManager.library = { return 0; } else { FS.forceLoadFile(target); - var lib_data = intArrayToString(target.contents); + var lib_data = FS.readFile(filename, { encoding: 'utf8' }); } try { |