Comments (4)
Sure. You can use the console
module as an example.
BTW, goja supports Proxy
(and many other ES6 features)
from goja_nodejs.
Wow, I just wanted to say that implementing this was a very pleasant experience. I feared that there was lots of marshaling awaiting me, but at least the very minimal implementation to fulfill my use case worked out of the box. I deliberately added an unconditional fail to the tests because I couldn't believe how it just worked.
And I am also in awe how far the ES6 support is by now. This is great news!
from goja_nodejs.
The "process.env" part from #33 was already merged, so in that regard this issue has been solved.
I think process.stdout.write
and process.stderr.write("foo\n")
should be rather easy to add and there are other low hanging fruits in there that should be pretty much oneliners. Maybe taking a stab at those at some point unless someone is faster.
from goja_nodejs.
Sorry, forgot to close the issue. Feel free to go for those stderr
and stdout
parts, I personally do not need them and don't plan on tackling them. I'm not 100% confident that they are oneliners because I have no idea how they would / should behave when called with binary data.
from goja_nodejs.
Related Issues (20)
- setImmediate support HOT 1
- No way to interrupt a script running EventLoop HOT 3
- could you help me understand the example on README HOT 1
- Docs Request
- [Feature]: Support Path module
- how to return valuein eventloop? HOT 1
- join contribution
- Is there any plan to implement http
- EventLoop : Wait for all jobs to finish HOT 7
- [Feature Request] Add a option for disable the `require` method when using EventLoop HOT 1
- setInterval setImmediate HOT 3
- EventLoop: runtime management
- evenloop.Run hang with setInterval HOT 3
- Event loop gets stuck unexpectedly HOT 1
- How can i get details error message when a package is not found? HOT 2
- GoError: Invalid module at github.com/dop251/goja_nodejs/require.(*RequireModule).require-fm (native) HOT 1
- Can native crypto packages be supported? HOT 2
- Fatal Error: Concurrent Map Writes
- require need add current runtime's parser options HOT 4
- Use ada-url for url implementation HOT 1
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 goja_nodejs.