Age | Commit message (Collapse) | Author |
|
This was introduced because Tokio would swallow panics. This is still
the case, but this panic handler causes more problems than it solves.
It requires people to know how to use debuggers to inspect stacktraces.
TODO:
- Fix Tokio to not swallow errors.
- Be vigilant in the intrim to not introduce broken tests due to this
unfortunate "feature" of tokio.
|
|
|
|
|
|
- Improves speed and binary size significantly.
- Makes deno_last_exception() output a JSON structure.
- Isolate::execute and Isolate::event_loop now return
structured, mapped JSError objects on errors.
- Removes libdeno functions:
libdeno.setGlobalErrorHandler()
libdeno.setPromiseRejectHandler()
libdeno.setPromiseErrorExaminer()
In collaboration with Ryan Dahl.
|
|
`Isolate::from_void_ptr` is renamed to `from_raw_ptr`, to keep
consistency with std libs.
It is changed to `unsafe` function, because it can't guarantee that the
input is valid. This guarantee should be provided by the caller.
Its return type is changed to `&Isolate`, because `&mut Isolate` type
requires that no other aliases co-exist in this period of time, this
does not seem true. So I changed most of the methods to accept shared
reference `&Isolate`. It is easier to reason about the correctness of
`unsafe` blocks. As long as these shared references are in the same
thread, these `unsafe` codes are probably correct.
|
|
This is the second attempt at this patch. The first version was reverted
in 2ffd78daf9956a24098d1f959f21882e350e9d37
The problem, I suspect, was that the snapshot was represented as a
source_set, which inserted a node into the dependency tree.
include_bytes does properly insert the snapshot into rustc's depfile but
the use of source_set confused gn. Now the that the deno executable has
the create_deno_snapshot as a direct dependency, changes will be
propagated.
|
|
|
|
Reverting because this is causing Appveyor to be red. However
I hope we can reintroduce include_bytes! soon in a way that
works on windows. Fixes #1208.
This reverts commits 96c3641fffe8509af9351cec4580861e76d89cc9
and 92e404706b0b1a26cdaf6f8cf81aac148292557f.
|
|
|
|
Adds a general HttpHeader flatbuffer message for serializing requests
and responses.
|
|
|
|
It was doing two independent things:
- print help and exit
- set log level
It's better to do those explicitly in main.rs
|
|
- Running repl from js side.
- Add tests for repl behavior.
- Handle ctrl-C and ctrl-D.
|
|
Run with: cargo clippy
https://github.com/rust-lang-nursery/rust-clippy
|
|
|
|
|
|
- Based on code from @qti3e and @piscisaureus in #724 and #1125
respectively.
- TODO The DENO_BUILD_PATH env var must be supplied and must be an
absolute path, this restriction should be removed in future work.
|
|
|
|
Use msg_generated.rs as mod instead of crate.
|
|
|
|
|
|
|
|
|
|
|
|
Do not use tokio_io::io:write_all().
Adds src/tokio_write.rs
|
|
Refactor set_flags to return a Result
|
|
So as not to conflict with http crate.
|
|
|
|
|
|
|
|
Adds deno.listen(), deno.dial(), deno.Listener and deno.Conn.
|
|
Add docs to src/resources.rs.
|
|
Adds deno.stdin, deno.stdout, deno.stderr, deno.open(), deno.write(),
deno.read(), deno.Reader, deno.Writer, deno.copy().
Fixes #721. tests/cat.ts works.
|
|
|
|
By using the tokio default runtime.
This patch makes all of the ops thread safe.
Adds libdeno to JS globals to make for easier testing.
Preliminary work for #733.
|
|
And rename net.rs to http.rs
Share HTTP connection.
|
|
|
|
|
|
|
|
and removeSync(), removeAllSync().
|
|
|
|
|
|
|
|
Adds hyper-rustls to the build.
Use ring for sha1 instead of "ssh1" crate.
Fixes #528.
|
|
Prep for rustls.
|
|
|
|
Implement --reload
Integrate hyper errors into DenoError
In collaboration with Tommy Savaria <tommy.savaria@protonmail.ch>
|
|
Introduces error codes that are shared between JS/RS
Fixes #526.
|
|
With help from Thomas Ghysels <info@thomasg.be>
|
|
In particular this allow -D for logging debug output.
|