aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/analyzer.js2
-rw-r--r--src/preamble.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 3cc07f22..bae05ec8 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -1129,7 +1129,7 @@ function analyzer(data) {
// Add additional necessary items
if (INCLUDE_FULL_LIBRARY) {
assert(!BUILD_AS_SHARED_LIB, 'Cannot have both INCLUDE_FULL_LIBRARY and BUILD_AS_SHARED_LIB set.')
- var libFuncsToInclude = Object.keys(Library);
+ var libFuncsToInclude = keys(Library);
} else {
var libFuncsToInclude = ['memset', 'malloc', 'free'];
}
diff --git a/src/preamble.js b/src/preamble.js
index afada476..408ef6aa 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -589,8 +589,8 @@ function intArrayToString(array) {
{{{ reSign }}}
// Use console read if available, otherwise we are in a browser, use an XHR
-if (this.read === undefined) {
- var read = function(url) {
+if (!this['read']) {
+ this['read'] = function(url) {
// TODO: use mozResponseArrayBuffer/responseStream/etc. if available
var xhr = new XMLHttpRequest();
xhr.open("GET", url, false);