diff options
author | max99x <max99x@gmail.com> | 2011-06-26 05:39:05 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-06-26 05:39:05 +0300 |
commit | 0575efbfafda86bbc921b086167aefc59252ecde (patch) | |
tree | 92e9985ececb94d5eaf63202afe52d3ce1a2f877 /src | |
parent | 7c07cb3fd5638a5512b8b3f582c62d031849187a (diff) |
Fixes for review notes.
Diffstat (limited to 'src')
-rw-r--r-- | src/analyzer.js | 2 | ||||
-rw-r--r-- | src/preamble.js | 4 |
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); |