diff options
author | max99x <max99x@gmail.com> | 2011-07-22 20:59:33 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-22 20:59:33 +0300 |
commit | 4f25c5b69954137557da89973f10d121cdb4a980 (patch) | |
tree | 8a772dfe7453667858cbedb4a5b039b6924936ab | |
parent | ab8f41cf0c59b0b63f5329a8583725733c303bad (diff) |
Fixed INCLUDE_FULL_LIBRARY including __deps and __postset fields.
-rw-r--r-- | src/jsifier.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index b712e7ae..c0f7ccb1 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -11,7 +11,12 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) { var libFuncsToInclude; if (INCLUDE_FULL_LIBRARY) { assert(!BUILD_AS_SHARED_LIB, 'Cannot have both INCLUDE_FULL_LIBRARY and BUILD_AS_SHARED_LIB set.') - libFuncsToInclude = keys(LibraryManager.library); + libFuncsToInclude = []; + for (var key in LibraryManager.library) { + if (!key.match(/__(deps|postset)$/)) { + libFuncsToInclude.push(key); + } + } } else { libFuncsToInclude = ['memset', 'malloc', 'free']; } |