1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-13 16:26:08 -05:00
Commit graph

7004 commits

Author SHA1 Message Date
Vincent LE GOFF
4861bb8aad add warning for adblockers (#2250) 2019-05-03 20:52:23 -04:00
Ryan Dahl
2aae09c2b8 v0.4.0 2019-05-03 19:33:50 -04:00
Bartek Iwańczuk
5824e55efa fix: deno version panic (#2286) 2019-05-03 18:48:50 -04:00
Ryan Dahl
3b1e2f1ad4 v0.3.11 2019-05-03 18:05:41 -04:00
Bartek Iwańczuk
f6a9d7d717 add "deno run" subcommand (#2215) 2019-05-03 17:15:16 -04:00
Kevin (Kun) "Kassimo" Qian
3608117132 feat(cli cmd): deno xeval (#2260) 2019-05-03 16:24:09 -04:00
Kevin (Kun) "Kassimo" Qian
401a5c0211 feat: support .mjs extension resolution (#2283)
Removed `extmap` and added .mjs entry in `map_file_extension`.
The assert in the compiler does not need to be updated, since it is
resolving from the compiled cache instead of elsewhere (notice the .map
is asserted next to it)
2019-05-03 15:03:10 -04:00
Ryan Dahl
4648277fb4
Minor doc edits (#2231) 2019-05-03 15:02:14 -04:00
Kevin (Kun) "Kassimo" Qian
6929aba71d fix: display "-0" for -0 (#2281)
Added special handling code in js/console.ts
2019-05-03 14:01:20 -04:00
Bert Belder
52830414da ci: make the sanitize build fast again (#2280)
sccache doesn't work for cache debug builds at the moment, because it
doesn't support the `-Xclang -fdebug-compilation-dir` flag that has been
added by the most recent V8 upgrade.

This patch should make the asan/lsan job on Travis CI fast again.
2019-05-03 12:54:25 -04:00
Bert Belder
da428b52a1
Bump required rustc version to 1.34.1 2019-05-03 17:13:47 +02:00
Bartek Iwańczuk
459162fc6e add --no-fetch CLI flag to prevent remote downloads (#2213) 2019-05-03 11:09:51 -04:00
Bartek Iwańczuk
bf9b0c8231 Fix: deno --v8-options does not print v8 options (#2277) 2019-05-03 08:59:52 -04:00
Kurt Mackey
4d4dcafb96 fixes body formData tests disabled in #2268 (#2274) 2019-05-03 00:52:50 -04:00
Ryan Dahl
00ac871607
Optimize read and write ops (#2259) 2019-05-03 00:06:43 -04:00
Bert Belder
cfff8a9c1b
ci: run clippy 2019-05-03 03:47:57 +02:00
Bert Belder
8999517421
core,cli: fix clippy warnings 2019-05-03 03:29:42 +02:00
Ryan Dahl
e4354ce739
Re-enable networking unit tests (#2268)
The following tests were commented out in order to get this to go green :
- bodyMultipartFormData
- bodyURLEncodedFormData
- fetchRequestInitStringBody
- netConcurrentAccept
- netListenAsyncIterator
2019-05-02 17:08:02 -04:00
Bert Belder
48bcfce09e
Work around Windows-only V8 concurrent initialization crash
This patch provides a work-around for an apparent V8 bug where
initializing multiple isolates concurrently leads to a crash on
Windows.

At the time of writing the cause of this crash is not exactly
understood, but it seems to be related to the V8 internal
function win64_unwindinfo::RegisterNonABICompliantCodeRange(),
which didn't exist in older versions of V8.
2019-05-02 20:46:56 +02:00
Bert Belder
ae0544b7ce core: remove support for moving deno_buf ownership from C++ to JavaScript
The functionality hasn't been in use for a long time. Without this feature,
the `alloc_ptr` and `alloc_len` fields are no longer necessary.
2019-05-02 06:25:44 +02:00
Kurt Mackey
c05cbc8eac Add Request global constructor (#2253) 2019-05-01 23:56:42 -04:00
Kevin (Kun) "Kassimo" Qian
1dd30f658f doc: add long about messages for subcommands (#2264)
Type deno <subcommand> -h to view descriptions.
2019-05-01 19:15:36 -04:00
Ryan Dahl
c171813e89
core: express op as enum (#2255) 2019-05-01 18:22:32 -04:00
Alvaro
2f14376f60 docs(fs): fix async iterator (denoland/deno_std#366)
Original: aa94463902
2019-05-01 17:45:30 -04:00
andy finch
2f4fefd0f6 Async iterator for listener (#2263) 2019-05-01 16:58:09 -04:00
Bert Belder
41c7e96f1a
Refactor zero-copy buffers for performance and to prevent memory leaks
* In order to prevent ArrayBuffers from getting garbage collected by V8,
  we used to store a v8::Persistent<ArrayBuffer> in a map. This patch
  introduces a custom ArrayBuffer allocator which doesn't use Persistent
  handles, but instead stores a pointer to the actual ArrayBuffer data
  alongside with a reference count. Since creating Persistent handles
  has quite a bit of overhead, this change significantly increases
  performance. Various HTTP server benchmarks report about 5-10% more
  requests per second than before.

* Previously the Persistent handle that prevented garbage collection had
  to be released manually, and this wasn't always done, which was
  causing memory leaks. This has been resolved by introducing a new
  `PinnedBuf` type in both Rust and C++ that automatically re-enables
  garbage collection when it goes out of scope.

* Zero-copy buffers are now correctly wrapped in an Option if there is a
  possibility that they're not present. This clears up a correctness
  issue where we were creating zero-length slices from a null pointer,
  which is against the rules.
2019-05-01 21:11:09 +02:00
Bert Belder
abdb98a251
core: remove unused function StrBufNullAllocPtr() 2019-05-01 19:47:15 +02:00
Vincent LE GOFF
80161217d3 textproto: fix invalid header error and move tests (denoland/deno_std#369)
Original: b6aaddbcc0
2019-05-01 12:13:23 -04:00
Bartek Iwańczuk
8978870808 Rename test targets (#2262) 2019-05-01 09:48:56 -04:00
Kevin (Kun) "Kassimo" Qian
7237e9d34a fs: add Deno.utime/Deno.utimeSync (#2241) 2019-05-01 05:08:11 -04:00
andy finch
c36b5dd01c Make error in ast_util more informative. (#2252) 2019-04-30 12:15:03 -07:00
迷渡
bbeb30fc5e Make atob follow the spec (#2242) 2019-04-30 11:25:37 -07:00
Ryan Dahl
a217e55fec
Fix another flaky assert (#2246) 2019-04-30 10:43:00 -07:00
Ryan Dahl
474d47e841
Fix max_latency benchmark on zero value (#2247) 2019-04-30 10:42:36 -07:00
梨子(Riko)
adf9cf9949 docs(log): fix docs mistake (denoland/deno_std#372)
Original: a9c4141723
2019-04-30 08:19:55 -07:00
Ryan Dahl
200bed9277 Upgrade V8 to 7.6.53 2019-04-29 19:56:16 -07:00
Ryan Dahl
6c137342d7
flags: fix merge error (#2244) 2019-04-29 18:35:25 -07:00
迷渡
4dcdd88155 removes ? from URL when deleting all params (#2217) 2019-04-29 16:45:20 -07:00
Bartek Iwańczuk
636827a1d5 Rewrite flags.rs::parse_flags (#2237) 2019-04-29 16:43:06 -07:00
Kitson Kelly
1a0f53a807 Add support for custom tsconfig.json (#2089)
Use `--config`
2019-04-29 07:58:31 -07:00
Bartek Iwańczuk
ab9c159b50 remove dead code from log/test.ts (denoland/deno_std#370)
Original: e2c187003d
2019-04-29 07:55:52 -07:00
Vincent LE GOFF
a814cfc3e1 http/cookie: fixing equal character split (denoland/deno_std#368)
Original: 8503efc8f7
2019-04-29 07:49:50 -07:00
Ryan Dahl
73be183864
Disable flaky assert in killSuccess (#2230) 2019-04-28 14:16:37 -07:00
Ryan Dahl
1af02b405e
Revert "recover: #1517 Kill all pending accepts when TCP listener is closed (#2224)" (#2239)
Crashes while running wrk against
js/deps/https/deno.land/std/http/http_bench.ts

This reverts commit 972ac03858.
2019-04-28 14:15:15 -07:00
迷渡
a4551c853e fix test description for atob (#2232) 2019-04-28 09:14:57 -07:00
Vincent LE GOFF
ce101a0f86 http: Cookie improvements (denoland/deno_std#359)
Original: f111469103
2019-04-27 16:07:11 -07:00
Yusuke Sakurai
972ac03858 recover: #1517 Kill all pending accepts when TCP listener is closed (#2224) 2019-04-27 11:33:24 -07:00
Bartek Iwańczuk
02596c08bd disable --version flag from deno version (#2226) 2019-04-27 11:19:50 -07:00
Vincent LE GOFF
8d49022ef6 Update TS version on pipeline (denoland/deno_std#364)
Original: 1504894a69
2019-04-27 11:18:53 -07:00
Ryan Dahl
78bce41c14
Use alt logos on benchmarks and manual page (#2211) 2019-04-27 10:48:15 -07:00