This commit is contained in:
danielyxie
2018-06-02 20:37:56 -05:00
parent 7edae463bc
commit 957ce44316
14 changed files with 341 additions and 575 deletions
+1
View File
@@ -484,6 +484,7 @@ function parseOnlyRamCalculate(server, code, workerScript) {
// onto the main reference map, and a list of modules that need to be parsed.
function parseOnlyCalculateDeps(code, currentModule) {
const ast = parse(code, {sourceType:"module", ecmaVersion: 8});
console.log(ast);
// Everything from the global scope goes in ".". Everything else goes in ".function", where only
// the outermost layer of functions counts.