Commit graph

11 commits

Author SHA1 Message Date
Kevin (Kun) "Kassimo" Qian f156a86024 console.warn goes to stderr (#810) 2018-09-25 01:27:02 -04:00
Ryan Dahl 234d5ea780 libdeno.send(): Use GetContents instead of Externalize
Fixes #744.
2018-09-24 22:16:23 -04:00
ztplz f3684c28e5 Rename deno.argv, libdeno::DenoC and deno_set_flags (#796) 2018-09-22 08:47:44 -04:00
Ryan Dahl 62470c4f45 Upgrade V8 to 7.0.276.15 2018-09-17 21:41:29 -07:00
Ryan Dahl 0d03fafbfe Map promises onto futures.
Refactors handlers.rs

The idea is that all Deno "ops" (aka bindings) should map onto
a Rust Future. By setting the "sync" flag in the Base message
users can determine if the future is executed immediately or put
on the event loop.

In the case of async futures, a promise is automatically created.
Errors are automatically forwarded and raised.

TODO:

- The file system ops in src/handler.rs are not using the thread pool
  yet. This will be done in the future using tokio_threadpool::blocking.
  That is, if you try to call them asynchronously, you will get a promise
  and it will act asynchronous, but currently it will be blocking.
- Handlers in src/handler.rs returned boxed futures. This was to make
  it easy while developing. We should try to remove this allocation.
2018-09-09 18:47:22 -04:00
Ryan Dahl 902e6e2ee6 Fix warnings.
Ref #374
2018-08-30 05:48:40 -04:00
Bert Belder dfcde3e1ee
format 2018-08-26 19:22:37 +02:00
Bert Belder 79f60f6731
build: do not bake absolute paths into deno_ns 2018-08-26 18:27:23 +02:00
Bert Belder 26707446fc
libdeno: add file utilities Dirname() and ExePath() 2018-08-26 18:27:23 +02:00
Yoshiya Hinosawa 17d6d6b336 refactor: add and use libdeno.setGlobalErrorHandler instead of window.onerror 2018-08-26 11:03:41 -04:00
Yoshiya Hinosawa aaabc853e8 chore: move libdeno files to //libdeno/ 2018-08-19 11:27:47 -04:00