diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-30 17:48:49 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-30 17:48:49 -0700 |
commit | b5b84c93e5eededcd6a704c4580fef5c574a9718 (patch) | |
tree | 1b6e1f979d795d141847473afc19225964bc9052 | |
parent | 27fc24141afdff04c44a3d7536588ed19038fb71 (diff) |
make sure the eval in emscripten_run_script_string emits a string
-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 bcd6d7dc..e3cdc7c3 100644 --- a/src/library.js +++ b/src/library.js @@ -8578,7 +8578,7 @@ LibraryManager.library = { }, emscripten_run_script_string: function(ptr) { - var s = eval(Pointer_stringify(ptr)); + var s = eval(Pointer_stringify(ptr)) + ''; var me = _emscripten_run_script_string; if (!me.bufferSize || me.bufferSize < s.length+1) { if (me.bufferSize) _free(me.buffer); |