Comments (5)
I'm working on the Module
parsing now. This will probably require some changes on how we parse, since we no longer have just "scripts", we also have "modules", which require a bit of a different parsing.
Not a big deal, though. For now I will work on the parsing, and see how we go from there. I would also like to see how to adapt our tester to be able to test modules.
On the API side, I'm thinking that it would be interesting to be able to initialize the Context
with a module loader, and we can provide a simple "file module loader" which would load modules from a given path. This would enable users to create their own module loader, so that they can import modules from files, databases, memory or from wherever they want.
I expect to have a PR ready during the weekend, for the parsing. If you want to see progress, check the import_parse
branch.
from boa.
Any updates on this? The PR was closed a while ago, and i can't find another decent, embeddable rust javascript engine like this 😕
I will soon add a project for this, it's definitely in the pipeline, along with generators and a async/await support.
from boa.
Nope, I haven't got this far yet, feel free to let us know if you have any ideas or if you wanted try something out.
In theory the interpreter can run multiple times against new files
It would need to be modified to return a Value back into something else, instead of the String it returns currently
from boa.
Work has started on import parsing jasonwilliams#259
from boa.
Any updates on this? The PR was closed a while ago, and i can't find another decent, embeddable rust javascript engine like this 😕
from boa.
Related Issues (20)
- Promise all runs concurrently instead of joining HOT 2
- Array.shift is very slow HOT 3
- Optimize arrays and array operations
- Web Api support? HOT 2
- oxc as AST Parser? HOT 2
- Add Boa to Test262-Harness
- Cancel/Interrupt active evaluation HOT 3
- perf issue: basic loop is 10 times slower than QJS and 100 times slower than Node
- RegExp exec failed HOT 4
- Move out ICU blobs
- Consider moving some builtins to the `NativeObject` variant of `JsObject` HOT 2
- Add tests for `JsSymbol` HOT 7
- Make a pre-parsing phase to analyze variable scopes
- Calling a function with parameters that was imported via "require/module.exports" causes an error HOT 1
- Function name cannot be reassigned in it's scope.
- How do you properly call an async function under tokio?
- Variables declared without var are not recognized as global in Non-Strict Mode. HOT 4
- Realm `host_defined` and `host_defined_mut` functions aren't accessible HOT 2
- Rust async function stuck indefinitely when called from js HOT 4
- Customizable console
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boa.