aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-08-06 06:30:27 +0300
committermax99x <max99x@gmail.com>2011-08-06 06:30:27 +0300
commit869dd298eb0a61b882688cb9e79c4df729b64a54 (patch)
tree1888ecea09519da7779ace0780d89a245aa9e658 /src/jsifier.js
parentb90a6c482d50772c37ced79dd86c8c005e1f71d5 (diff)
Replaced "new Date.getTime()" with "Date.now()";
Added a note about shared lib static allocations.
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 016c7df6..c6f73d50 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -212,6 +212,8 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) {
});
constant = '[' + constant.join(', ') + ']';
}
+ // NOTE: This is the only place that could potentially create static
+ // allocations in a shared library.
constant = makePointer(constant, null, BUILD_AS_SHARED_LIB ? 'ALLOC_NORMAL' : 'ALLOC_STATIC', item.type);
var js = item.ident + '=' + constant + ';';