From 1844ec1caf6b0068fa407cce9b9b733eb366f7c0 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 23 Jun 2014 17:01:58 -0700 Subject: use readFile in dlopen, instead of hackish internals-only usage of contents; should fix #2445 --- src/library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3-18-g5258