1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-14 16:33:45 -05:00
Commit graph

1799 commits

Author SHA1 Message Date
Bert Belder
e43da28b28
core: poll ops round robin
Also use a VecDeque to store pending ops to avoid exponential time complexity
when removing completed ops from the list.
2019-04-08 23:10:21 +02:00
Ryan Dahl
2debbdacb9
Merge Worker and Isolate types (#2078)
Reduces generics.
2019-04-08 17:10:00 -04:00
Vincent LE GOFF
734cf781c6 Allow high precision performance.now() (#1977) 2019-04-08 16:22:40 -04:00
Ryan Dahl
f7fdb90fd5
core: snapshot improvements (#2052)
* Moves how snapshots are supplied to the Isolate. Previously they were
  given by Behavior::startup_data() but it was only called once at
  startup. It makes more sense (and simplifies Behavior) to pass it to the
  constructor of Isolate.
* Adds new libdeno type deno_snapshot instead of overloading
  deno_buf.
* Adds new libdeno method to delete snapshot deno_snapshot_delete().
* Renames deno_get_snapshot() to deno_snapshot_new().
* Makes StartupData hold references to snapshots. This was implicit when
  it previously held a deno_buf but is made explicit now. Note that
  include_bytes!() returns a &'static [u8] and we want to avoid
  copying that.
2019-04-08 10:12:43 -04:00
迷渡
cdb72afd8d fix console instanceof Console (#2073) 2019-04-08 09:25:01 -04:00
Kevin (Kun) "Kassimo" Qian
1746a3ac69 Add link/linkSync fs call for hardlinks (#2074) 2019-04-08 09:11:32 -04:00
Ryan Dahl
4232c89c9e
Use -O3 instead of -O (#2070)
As recommended in
https://www.reddit.com/r/rust/comments/balb45/why_is_hypers_max_latency_so_high_in_deno/ekck1ww/
2019-04-07 22:28:28 -04:00
Jonathon Orsi
3452a10840 use flatbuffer create functions to add fields (#2046) 2019-04-07 20:51:43 -04:00
Bartek Iwańczuk
86aee7f137 Flags clean up: DenoFlags::from (#2068) 2019-04-07 14:58:16 -04:00
Ryan Dahl
3995473925
Fix unit_tests.py (#2065)
They were silently broken in 780e72 due to flag reordering. This commit
also includes a new assert that would avoid that kind of failure in the
future.
2019-04-07 20:58:26 +03:00
Gxyz
3324afbd40 Fix typo in manual.md (#2066) 2019-04-07 06:55:44 +03:00
Bartek Iwańczuk
780e72ab6a Refactor CLI flag parsing (#2025) 2019-04-07 01:13:06 +03:00
Ryan Dahl
cb11bbd839
Test TCP_NODELAY in hyper_hello (#2060) 2019-04-06 16:56:30 +03:00
Ryan Dahl
9e890c260b Fix tools/docs.py (#2055) 2019-04-06 15:54:54 +02:00
andy finch
7a3df0a184 Add worker benchmarks (#2059) 2019-04-05 22:57:59 +03:00
wangtxxl
031411b449 fix v0.3.6 date error (#2051) 2019-04-05 00:16:24 -04:00
andy finch
07f0d077c7 add compile_async (#2053) 2019-04-05 00:04:06 -04:00
Ryan Dahl
744e56cb58 v0.3.6 2019-04-04 09:59:41 -04:00
Ryan Dahl
0a26230a87
Improve docs in core (#2049) 2019-04-04 09:35:52 -04:00
迷渡
4520e5812e fix code bug in jsdocs (#2048) 2019-04-04 05:34:00 -04:00
andy finch
0e7311e171 Non-fatal compile_sync failures (#2039)
And model worker resources as Stream
2019-04-04 05:33:32 -04:00
迷渡
8c85766198 fix JSDoc (#2043) 2019-04-03 08:53:54 -04:00
迷渡
bb617d2478 fix toString for some web objects (#2040) 2019-04-03 08:41:05 -04:00
迷渡
5f97c041d9 fix console.log when error has been caught (#2041) 2019-04-03 08:38:50 -04:00
迷渡
6463a75b44 web-compatibility console (#2042) 2019-04-03 08:37:01 -04:00
Bert Belder
917e68f30f
Refactor deno_core::RecursiveLoad to be more idiomatic (#2034) 2019-04-02 20:10:16 +02:00
Ryan Dahl
2b0f553e2e
Add deno_core::RecursiveLoad for async module loading (#2034) 2019-04-02 20:10:08 +02:00
Bert Belder
5f1e42f8ac
cli: refactor compile_sync() for readability 2019-04-02 18:04:25 +02:00
Bert Belder
b735155712
Clippy fixes 2019-04-02 18:04:25 +02:00
JaePil Jung
efbe44eb33 Fix missing return type (#2038) 2019-04-02 10:42:17 -04:00
Kevin (Kun) "Kassimo" Qian
534b8d3021 Follow redirect location as new referrers for nested module imports (#2031)
Fixes #1742
Fixes #2021
2019-04-01 21:46:40 -04:00
Vincent LE GOFF
e44084c90d add scoop in the install (#2035) 2019-04-01 20:38:03 -04:00
andy finch
b0a23beb8f Add web worker JS API (#1993)
* Refactored the way worker polling is scheduled and errors are handled.
* Share the worker future as a Shared
2019-04-01 15:09:59 -04:00
迷渡
659acadf77 Improve new TextDecoder().toString() (#2032) 2019-04-01 13:05:19 -04:00
Kitson Kelly
ada5ffa610 Upgrade to TypeScript 3.4.1 (#2027) 2019-04-01 12:47:25 -04:00
迷渡
c855d0edd2 Update deno -h output in manual (#2030) 2019-04-01 11:01:58 -04:00
Bert Belder
ff1c80d6d8
third_party: add rust crate 'clap' 2019-03-31 17:55:03 -04:00
Bert Belder
97265895ba
Publish rust crate on crates.io (#2024) 2019-03-31 17:22:02 -04:00
Ryan Dahl
3ba4c3c2b0
Remove deno_core_http_bench from core/Cargo.toml (#2023)
So we don't have to have an optional tokio dependency. We build
deno_core_http_bench using GN anyway.
2019-03-31 11:11:36 -04:00
Ryan Dahl
e9910d8ae5
Rename crate deno_core to deno (#2022) 2019-03-30 19:30:40 -04:00
Ryan Dahl
6744bb8d75
Call ninja directly from build.rs (#2020) 2019-03-30 19:27:00 -04:00
Ryan Dahl
c9614d86c1
Move //libdeno to //core/libdeno (#2015)
Fixes some sed errors introduced in c43cfe.

Unfortunately moving libdeno required splitting build.rs into two parts,
one for cli and one for core.

I've also removed the arm64 build - it's complicating things at this
re-org and we're not even testing it. I need to swing back to it and get
tools/test.py running for it.
2019-03-30 14:45:36 -04:00
迷渡
ad3cbc50fb check EventTarget params (#2018) 2019-03-30 13:40:03 -04:00
迷渡
51c6f33f64 Avoid search prototype chain (#2019) 2019-03-30 08:18:19 -04:00
Bert Belder
3d6c033369
third_party: upgrade rust crates 2019-03-29 14:50:07 -04:00
Ryan Dahl
b965c7ab36 v0.3.5 2019-03-28 16:58:17 -04:00
Bartek Iwańczuk
bdc455dd25 Add Process.stderrOutput() (#1828) 2019-03-28 16:09:46 -04:00
Ryan Dahl
c25e262b04
Merge the --recompile and --reload flags (#2003) 2019-03-28 16:05:41 -04:00
Ryan Dahl
51abcd6147 Make sharedQueue overflow warning quieter (#2008) 2019-03-28 14:13:34 -04:00
Bert Belder
da1b98b690 Clippy fixes (#2009) 2019-03-28 08:09:19 -04:00