1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
Commit graph

698 commits

Author SHA1 Message Date
Bert Belder
6cfc6b5d51
test: disable incorrect tests
These tests weren't running because with the old timer implementation
time-outs were sometimes lost, and the test harness uses setTimeout
to throw errors after a test has failed.
2018-10-03 13:28:00 -07:00
Bert Belder
97e08a6fab
isolate: work around a rust compiler bug 2018-10-03 13:27:59 -07:00
Bert Belder
4eeda9ea27
timers: remove the old timer implementation
Fixes #878.
2018-10-03 13:27:59 -07:00
Li Hao
99e2c42d16
timers: add some more unit tests
Closes #682.
2018-10-03 13:27:59 -07:00
Bert Belder
aa691ea26c
timers: implement timers in javascript 2018-10-03 13:27:55 -07:00
Bert Belder
6b77acf39d
ci: set RUST_BACKTRACE=1 2018-10-03 05:35:38 -07:00
Kanishkar J
3f1899fc46 Hide line with value zero (#882) 2018-10-03 05:21:26 -04:00
Ryan Dahl
545109cf2d Add fetch_deps to syscall count.
The benchmark was added in b7fd6e but was not surfaced in the UI.

TODO: The tests should have failed and caught this situation.
2018-10-03 03:54:25 -04:00
Kevin (Kun) "Kassimo" Qian
eba58b7188 Guess extensions on extension not provided (#859)
Fixes #857
2018-10-02 12:38:45 -04:00
Ryan Dahl
fc1c54dde0 Adjust how handle_read handle_write function.
Use tokio_io::io::read() and tokio_io::io::write_all()
instead of poll_fn() as suggested in the Tokio gitter.
2018-10-01 22:30:57 -04:00
Ryan Dahl
42c5b103ec Rename FdTable to ResourceTable.
Add docs to src/resources.rs.
2018-10-01 22:30:57 -04:00
Ryan Dahl
393f751a27 Format. 2018-10-01 22:30:57 -04:00
Kevin (Kun) "Kassimo" Qian
3a6d4e6260 Bind this to console methods (#873)
Fixes #872
2018-10-01 12:41:37 -04:00
ztplz
1fcc11a19d rename parse_core_args to v8_set_flags_preprocess (#871) 2018-10-01 10:23:36 -04:00
Yingbo (Max) Wang
bcdbfc00f0 Limit depth of output in console.log for nested objects, and add console.dir (#826) 2018-09-30 18:10:20 -04:00
Kevin (Kun) "Kassimo" Qian
50a9c2b575 Add copyFile/copyFileSync (#863) 2018-09-30 18:06:41 -04:00
Kevin (Kun) "Kassimo" Qian
eceeabdab2 Remove unused table WriteFileSync 2018-09-30 18:05:37 -04:00
Ryan Dahl
b7fd6e9c69 Add fetch_deps syscall count benchmark. 2018-09-30 16:35:12 -04:00
Ryan Dahl
cec82263c1 Format 2018-09-30 16:35:12 -04:00
Bert Belder
4c6f37cec3
tools: define ERROR_INVALID_PARAMETER in utils.py
Fixes #865.
2018-09-30 12:44:58 -07:00
ztplz
062b22fe56 Add deno.truncate (#805) 2018-09-30 15:06:20 -04:00
Eric Lewis
f51903f773 Add top-level await issue link to readme (#860) 2018-09-30 11:01:08 -04:00
ztplz
b635553fd7 Improve fetch headers (#853) 2018-09-30 10:31:50 -04:00
Ryan Dahl
77e876388b v0.1.6
- Adds deno.stdin, deno.stdout, deno.stderr, deno.open(), deno.write(),
  deno.read(), deno.Reader, deno.Writer, deno.copy() #846
- Print 'Compiling' when compiling TS.
- Support zero-copy for writeFile() writeFileSync() #838
- Fixes eval error bug #837
- Make Deno multithreaded #782
- console.warn() goes to stderr #810
- Add deno.readlink()/readlinkSync() #797
- Add --recompile flag #801
- Use constructor.name to print out function type #664
- Rename deno.argv to deno.args
- Add deno.trace() #795
- Continuous benchmarks https://denoland.github.io/deno/
2018-09-29 13:36:07 -04:00
Ryan Dahl
bcbbee7399 Adds basic File I/O and FD table.
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.
2018-09-28 20:53:33 -04:00
Bert Belder
d653808c9f
appveyor: re-enable python stdout buffering
It's not longer necessary.
2018-09-28 12:56:38 -07:00
Bert Belder
7f29e14b2a
libdeno: use cstream instead of printf to write to stderr 2018-09-28 12:56:38 -07:00
Bert Belder
3ddac4d86c
libdeno: remove dead code 2018-09-28 12:56:37 -07:00
Nisheet Sinvhal
50b8935a1f
Better build instructions for windows
Fixes #802.
2018-09-27 17:34:20 -07:00
Bert Belder
ed33b0c783
third_party: gitignore depot_tools/.cipd_client temporary files 2018-09-27 16:43:45 -07:00
Ryan Dahl
b1d9014b5b Print 'Compiling' when compiling TS. 2018-09-27 17:34:51 -04:00
Ryan Dahl
d38ccfc6dc
Support zero-copy data in libdeno.send(). (#838)
This is a large API refactor of deno.h which replaces
deno_send() and deno_set_response() with deno_respond().
It also adds a req_id parameter to the deno_recv_cb.

Make writeFile/writeFileSync use it.
2018-09-27 17:33:10 -04:00
Andy Hayden
bf93ca54dd Ensure spawning python server twice raises an exception.
Previously it would dump the traceback but not raise.
It's unclear if serve_forever could crash for some other reason,
but the main reason spawn throws is if the port is already in use.
2018-09-27 15:49:43 -04:00
Ryan Dahl
ef41a1ab2b Add benchmark descriptions. 2018-09-27 05:00:23 -04:00
Kevin (Kun) "Kassimo" Qian
c75b1b6237 Benchmarks: github link and truncate sha1 (#845) 2018-09-27 02:19:42 -04:00
ztplz
c226e1b44e Travis benchmark (#832) 2018-09-26 20:26:34 -04:00
Kevin (Kun) "Kassimo" Qian
1e390e69cd Error pretty print (print stack) 2018-09-26 19:30:43 -04:00
Kevin (Kun) "Kassimo" Qian
32806b1871 Expand binary size benchmark (#830) 2018-09-26 14:16:22 -07:00
Ryan Dahl
df09fbad92 Use the thread pool for blocking I/O 2018-09-26 14:43:26 -04:00
Bert Belder
9e317c61d7
travis: don't cache unnecessary cargo and rustup files 2018-09-26 10:25:59 -07:00
Bert Belder
07d5035dd7
travis: name CARGO_HOME and RUSTUP_HOME env vars correctly
Because this is what rustup and cargo actually use:
https://doc.rust-lang.org/cargo/reference/environment-variables.html
2018-09-26 10:25:58 -07:00
Bert Belder
1fe474ba53
travis: use sccache to cache rust targets 2018-09-26 10:25:58 -07:00
Bert Belder
206d4f5c17
tools/setup: detect sccache presence and use it to cache rustc targets 2018-09-26 10:25:58 -07:00
Bert Belder
47e8242b29
build: add support for rustc_wrapper
Fixes #690.
2018-09-26 10:25:58 -07:00
Bert Belder
f10012facf
build: let rustc pick filenames, remove rust depfile hack
Fixes #787.
2018-09-26 10:25:49 -07:00
Bert Belder
531a427d88
build: do not quote cc_wrapper on windows
This brings behavior inline with the unix toolchain, which also leaves
cc_wrapper unquoted. If necessary, add quotes in the setup phase instead.
2018-09-26 09:52:30 -07:00
Bert Belder
023b4640fc
tools/setup: add gn_string() utility function 2018-09-26 09:52:30 -07:00
Bert Belder
1b9424e9d7
tools: add shell_quote() utility function 2018-09-26 09:52:30 -07:00
Bert Belder
3a6da19eb8 Revert "Expand binary size benchmark (#830)"
This reverts commit 8c7416b3f6.
2018-09-26 08:35:12 -04:00
Kevin (Kun) "Kassimo" Qian
8c7416b3f6 Expand binary size benchmark (#830) 2018-09-25 20:08:09 -04:00