aboutsummaryrefslogtreecommitdiff
path: root/src/shell_sharedlib.js
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-06-25 10:41:06 +0300
committermax99x <max99x@gmail.com>2011-06-25 10:41:06 +0300
commit4217219cd94bb814a485f18f7d041e874f3e86f5 (patch)
tree645e68c452236e9ab13ac6e14a87ecab6039cf87 /src/shell_sharedlib.js
parentc7fab4204bee149b2e0c9b2ed02e2bd69e91c572 (diff)
Added basic support for dynamic module loading.
Diffstat (limited to 'src/shell_sharedlib.js')
-rw-r--r--src/shell_sharedlib.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/shell_sharedlib.js b/src/shell_sharedlib.js
new file mode 100644
index 00000000..d7af23fc
--- /dev/null
+++ b/src/shell_sharedlib.js
@@ -0,0 +1,14 @@
+"use strict";
+
+// Capture the output of this into a variable, if you want
+(function() {
+ var Module = {};
+ var args = [];
+ Module.arguments = [];
+
+ {{BODY}}
+
+ // {{MODULE_ADDITIONS}}
+
+ return Module;
+});