1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-15 16:43:44 -05:00
Commit graph

6517 commits

Author SHA1 Message Date
Kitson Kelly
298d755152 Add support for --types 2018-10-11 20:29:43 -04:00
Kitson Kelly
ec402c6932 Replace globals.d.ts with lib.deno_runtime.d.ts 2018-10-11 20:29:43 -04:00
Ryan Dahl
fda7aaa10e Use node v8 on Travis.
Apparently OSX defaults to v6 and Linux to v8.
v6 does not properly run //js/testing due to async usage.
2018-10-11 20:29:43 -04:00
Ryan Dahl
4f4075307d
Fix metrics() race condition. (#965) 2018-10-11 18:22:05 -04:00
Ryan Dahl
d4f72e18be
Improve tools/unit_tests.py (#958)
Checks the output more carefully. The first line of output from
js/unit_tests.ts should be something like "running 96 tests"
And the last line should be something like
"test result: ok. 96 passed; 0 failed; 0 ignored; 0 measured; 36
filtered out"
This parses those strings and make sure they align.

This will catch silent death bugs.
2018-10-11 16:56:50 -04:00
Ryan Dahl
c814d5a914
Add throughput benchmark (#961) 2018-10-11 16:55:22 -04:00
Bartek Iwańczuk
51f9331ecb Add deno.metrics() 2018-10-11 15:45:51 -04:00
Li Hao
951e5def98 timers: align unit tests with others 2018-10-11 13:21:25 -04:00
Amos Lim
900dd6fa42 Add links of issues in Roadmap.md 2018-10-11 10:45:01 -04:00
Ryan Dahl
417ea7bb6d src/http.rs -> src/http_util.rs
So as not to conflict with http crate.
2018-10-10 14:29:55 -04:00
J2P
c99207bf39 Rename fd to rid 2018-10-10 12:21:01 -04:00
J2P
7cc9b64ff7 Rename BadFileDescriptor 2018-10-10 12:21:01 -04:00
Ryan Dahl
930df1848a Upgrade hyper-rustls
This removes tokio-core, which was deprecated.
2018-10-10 12:19:08 -04:00
Ryan Dahl
d26792d926 Clean up Isolate::event_loop with utility function. 2018-10-10 12:18:48 -04:00
ztplz
8ada28716a Add counts for ignored , measured, filtered 2018-10-10 08:03:59 -04:00
Kevin (Kun) "Kassimo" Qian
888824c617 Add redirect follow feature (#934) 2018-10-09 20:31:06 -04:00
Ryan Dahl
94889aef08 Re-enable test_fetch_sync_string 2018-10-09 13:59:50 -04:00
Bert Belder
5b66f28fa3
timers: add test for clearTimer bug #942 2018-10-08 19:54:32 +02:00
Li Hao
3fe6530f11
timers: fix clearTimer bug 2018-10-08 19:53:53 +02:00
Bert Belder
4f3250bc43
Remove deno_get_data()
Instead, pass the isolate data to the dispatch callback directly.
2018-10-08 18:19:36 +02:00
Bert Belder
e742af10aa
Abide by the rules when passing Isolate between c and rust
Ensure that at most one mutable Isolate reference exists at a time.

`deno_execute()` and `deno_respond()` now borrow a reference to the rust-side
isolate from the caller. When we need a reference to the isolate while one of
these functions is on the stack, `deno_get_data()` can be used to borrow back
that reference.
2018-10-08 18:19:32 +02:00
Bert Belder
d86e5d2605
Remove ntasks aliasing workaround 2018-10-08 18:10:28 +02:00
Bert Belder
ad4c4c214a
Rename Deno.data to Deno.user_data
Also use the correct rust type for it.
2018-10-08 18:10:28 +02:00
Bert Belder
14b971c5f7
Rename Isolate.ptr to Isolate.libdeno_isolate 2018-10-08 18:10:27 +02:00
Bert Belder
f60cc5730a
Format 2018-10-08 18:10:27 +02:00
Kevin (Kun) "Kassimo" Qian
2b8cee9a49 Check thrown type, print String(...) if not instance of error (#939)
Fixes #935
2018-10-08 11:36:09 -04:00
Kitson Kelly
ffb41e61f1 Updates to js to clean up default library 2018-10-07 22:52:27 -04:00
Yoshiya Hinosawa
1aa7e18ba3 refactor: stop hard coding some of benchmark names 2018-10-06 23:32:02 -04:00
Yoshiya Hinosawa
48923f48a2 docs: fix urls in comments 2018-10-06 23:26:39 -04:00
ns
8e82fa0af6 Export missing io types from deno 2018-10-06 22:16:42 -04:00
Ryan Dahl
0514f54a22 Make ntasks an atomic counter.
Fixes #919.
2018-10-06 20:24:47 -04:00
Kevin (Kun) "Kassimo" Qian
f1989c68a0 Add failing test for #919. 2018-10-06 20:24:47 -04:00
Ryan Dahl
8fba254c7a Temporarily disable shutdown tests.
The fix for these wasn't immediately obvious - they seem to have been
broken already but were skipped as reported in #919.
2018-10-06 20:24:47 -04:00
Kevin (Kun) "Kassimo" Qian
62a5020602 Fix symlink error message 2018-10-06 20:24:47 -04:00
Ryan Dahl
f998f7b9af Fix unused variable warning in release mode. 2018-10-06 20:24:47 -04:00
Kevin (Kun) "Kassimo" Qian
1ac80feb1c Replace panic with error on windows for symlink 2018-10-05 21:20:34 -04:00
cedric05
ba6c617432 tslint warning supress using tsconfig 2018-10-05 21:13:35 -04:00
Kevin (Kun) "Kassimo" Qian
3c212ddd1e Remove race condition from netCloseReadSuccess test 2018-10-05 21:06:01 -04:00
Ryan Dahl
5f14ec486c Upgrade Flatbuffers 2018-10-05 15:10:54 -04:00
Bert Belder
04b625054a
readme: fix formatting error 2018-10-05 20:31:16 +02:00
Ryan Dahl
c3bce178b8 Clean up helpers in src/errors.rs
* Add errors::bad_resource()
* Move permission_denied() to errors.rs
* Make op_symlink's not_implemented() into a runtime panic.
2018-10-05 14:27:47 -04:00
Ryan Dahl
899a62d5b0 Print test name before it fails. 2018-10-05 14:27:47 -04:00
Ryan Dahl
cfa54cabbd Always die on panic. 2018-10-05 14:27:47 -04:00
Ryan Dahl
ab952e3340 Format 2018-10-05 14:27:47 -04:00
Kevin (Kun) "Kassimo" Qian
941e27d8c1 Implement closeRead/closeWrite using TcpStream::shutdown (#903) 2018-10-05 12:16:23 -04:00
Kitson Kelly
6c42ded097 Hide compiler module (#909)
Fixes #876
2018-10-05 10:13:22 -04:00
Chris Bystrek
6a649012bc Changed tools/lint.py to lint the entire js and tests directories. (#900)
* Changed tools/lint.py to lint the entire js and tests directorys and sub directories, currently it was pointing at tsconfig and would only lint files that were part of js/main.ts or node_modules/typescript/lib/lib.esnext.d.ts and their dependencies

* Broke the typescript linting out into separate steps for the main typescript programing and tests.

* Fixed linting issues in ts tests.
2018-10-05 07:29:55 -04:00
Kitson Kelly
ce9148943c Move Platform from types to platform 2018-10-04 12:31:39 -04:00
Ryan Dahl
5307aa94e1 v0.1.7
- Improve fetch headers (#853)
- Add deno.truncate (#805)
- Add copyFile/copyFileSync (#863)
- Limit depth of output in console.log for nested objects, and add
  console.dir (#826)
- Guess extensions on extension not provided (#859)
- Renames:
  deno.platform -> deno.platform.os
  deno.arch -> deno.platform.arch
- Upgrade TS to 3.0.3
- Add readDirSync(), readDir()
- Add support for TCP servers and clients. (#884)
  Adds deno.listen(), deno.dial(), deno.Listener and deno.Conn.
2018-10-04 08:56:32 -04:00
Yingbo (Max) Wang
1023202634
Update instructions on using ./tools/format.py in README 2018-10-04 02:16:54 -07:00