aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-05-16 14:38:23 -0700
committerChad Austin <chad@imvu.com>2013-05-17 12:58:51 -0700
commit954f70274ed3b85b9d3885c6087df96376ca07d3 (patch)
tree578dc62e1351f27847f2370adbb14deb662a2e7f
parentfec256e358077534355250f08ddd47f19ec80703 (diff)
embind should predeclare Module in case it's included before a shell in the custom SCons change
-rw-r--r--src/embind/emval.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/embind/emval.js b/src/embind/emval.js
index 51c54bc1..77270597 100644
--- a/src/embind/emval.js
+++ b/src/embind/emval.js
@@ -1,10 +1,12 @@
-/*global Module, Runtime*/
+/*global Module:true, Runtime*/
/*global HEAP32*/
/*global new_*/
/*global createNamedFunction*/
/*global readLatin1String, writeStringToMemory*/
/*global requireRegisteredType, throwBindingError*/
+var Module = Module || {};
+
var _emval_handle_array = [{}]; // reserve zero
var _emval_free_list = [];