diff options
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 2 |
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 + ';'; |