diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-07-15 19:35:27 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-07-15 19:35:40 -0700 |
commit | 414f1dc84930595fa804023435267762e4f66be2 (patch) | |
tree | 2b8f6c3040bb5be129489353f4c4e94872639995 /src/jsifier.js | |
parent | 51505880de541576c79ece8b93e73690290c6c5e (diff) |
option to provide type info at run time
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 2babaa05..dfd1f08d 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -826,6 +826,10 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) { var preFile = BUILD_AS_SHARED_LIB ? 'preamble_sharedlib.js' : 'preamble.js'; var pre = processMacros(preprocess(read(preFile).replace('{{RUNTIME}}', getRuntime()), CONSTANTS)); print(pre); + if (RUNTIME_TYPE_INFO) { + Types.cleanForRuntime(); + print('Runtime.typeInfo = ' + JSON.stringify(Types.types)); + } generated.forEach(function(item) { print(indentify(item.JS || '', 2)); }); print(Functions.generateIndexing()); |