aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-11-26 21:37:09 -0800
committerAlon Zakai <azakai@mozilla.com>2010-11-26 21:37:09 -0800
commite3d1e034c6b8774a0da993b8ba82cd30135fb946 (patch)
tree7ec364d669da9af39b700181d2468df679497535 /src/postamble.js
parente053177b97a5bd2046019d573a0ce2619d922ae1 (diff)
remove clumsy iterative creation attempts of globals
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/postamble.js b/src/postamble.js
index 72233980..6907814b 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -8,24 +8,6 @@ function run(args) {
{{GLOBAL_VARS}}
- var failures = 0;
- while (globalFuncs.length > 0) {
- var func = globalFuncs.pop();
- try {
- var x = func();
- if (x == undefined) throw 'undefined';
- failures = 0;
- } catch (e) {
- failures++;
- if (failures > 2*globalFuncs.length) {
- throw 'Failed to generate global values';
- }
- globalFuncs.unshift(func);
- // We will try again later. The global vars we depend on should be resolved by then
- }
- }
- assert(globalFuncs.length === 0);
-
var argc = args.length+1;
function pad() {
for (var i = 0; i < QUANTUM_SIZE-1; i++) {