aboutsummaryrefslogtreecommitdiff
path: root/src/modules.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-27 20:02:42 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-27 20:02:42 -0800
commitee0c41b39bcaf80144b8112d3e307d3e4630c077 (patch)
treeb1c40a03e904dd2258f97989380bb3c651fa81b7 /src/modules.js
parentbdef7bf784d5765ffb4b64c51426eb1c517c33ea (diff)
do not index globals referred to by name in library
Diffstat (limited to 'src/modules.js')
-rw-r--r--src/modules.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules.js b/src/modules.js
index f939395b..fd0ec35e 100644
--- a/src/modules.js
+++ b/src/modules.js
@@ -266,6 +266,7 @@ var Functions = {
var LibraryManager = {
library: null,
+ loaded: false,
load: function() {
assert(!this.library);
@@ -274,6 +275,8 @@ var LibraryManager = {
for (var i = 0; i < libraries.length; i++) {
eval(processMacros(preprocess(read(libraries[i]))));
}
+
+ this.loaded = true;
},
// Given an ident, see if it is an alias for something, and so forth, returning