[fullJS Integration] Evaluation
salty-flower opened this issue · 0 comments
salty-flower commented
- Runs program through parser to get AST
- Do not validate
- Transpile
ImportDeclaration
- Integrate with
runInContext
- Add new evaluation method that uses
eval()
instead ofnew Function()
- It does not really matter with transpiled program as seen from testing, but I would think fullJS speed will be heavily affected
I believe we can just reuse
runInContext
way of includingbuiltIns
See https://github.com/source-academy/frontend/projects/10#card-76656478