aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-03 14:12:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-03 15:31:05 -0700
commit1804c48e607cbdd499799c840828085ccedf630e (patch)
tree3f141e647ca57b58e7aac7415adc5b7524702af4 /src/preamble.js
parentc8065da220560eb91d473ce2859b72c41ebb4304 (diff)
run postSets in a global initializer, before all other global initializers
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 4c61a86e..44e74b8d 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -884,8 +884,6 @@ __ATEXIT__.push({ func: function() { PGOMonitor.dump() } });
addPreRun(function() { addRunDependency('pgo') });
#endif
-var awaitingMemoryInitializer = false;
-
function loadMemoryInitializer(filename) {
function applyData(data) {
#if USE_TYPED_ARRAYS == 2
@@ -893,7 +891,6 @@ function loadMemoryInitializer(filename) {
#else
allocate(data, 'i8', ALLOC_NONE, STATIC_BASE);
#endif
- runPostSets();
}
// always do this asynchronously, to keep shell and web as similar as possible
@@ -908,8 +905,6 @@ function loadMemoryInitializer(filename) {
});
}
});
-
- awaitingMemoryInitializer = false;
}
// === Body ===