1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
Commit graph

6037 commits

Author SHA1 Message Date
Ryan Dahl
904c69c4c6 Add some links to website 2019-01-10 18:13:48 +01:00
Ryan Dahl
cca3a9562b
Re-enable --recompile (#1492) 2019-01-09 20:52:13 -05:00
Ryan Dahl
26bc251c58 Upgrade deno_std submodule. 2019-01-10 02:45:18 +01:00
Kevin (Kun) "Kassimo" Qian
d835c84ba9 Prevent segfault when eval throws an error (#1411) 2019-01-09 15:56:42 -05:00
Maxim Mazurok
3634488caa Fix flaky REPL test (#1491)
Fixes #1490
2019-01-09 15:32:05 -05:00
Ryan Dahl
0ceb554343
Native ES modules (#1460)
* Native ES modules

This is a major refactor of internal compiler.

Before: JS and TS both were sent through the typescript compiler where
their imports were parsed and handled. Both compiled to AMD JS and
finally sent to V8

Now: JS is sent directly into V8. TS is sent through the typescript
compiler, but tsc generates ES modules now instead of AMD. This
generated JS is then dumped into V8.

This should much faster for pure JS code. It may improve TS compilation
speed.

In the future this allows us to separate TS out of the runtime heap and
into its own dedicated snapshot. This will result in a smaller runtime
heap, and thus should be faster.

Some tests were unfortunately disabled to ease landing this patch:
1. compiler_tests.ts which I intend to bring back in later commits.
2. Some text_encoding_test.ts tests which made the file invalid utf8.
   See PR for a discussion.
Also worth noting that this is necessary to support WASM
2019-01-09 12:59:46 -05:00
Ryan Dahl
3afdae165d
Add --allow-all flag (#1482) 2019-01-09 11:59:54 -05:00
Yoshiya Hinosawa
6f8dc44a2b feat: print test status on the same line as test name (denoland/deno_std#100)
Original: 41a2d21826
2019-01-09 10:32:37 -05:00
Ryan Dahl
6f79ad721a
Minimal Worker support (#1476)
This adds the ability to spawn additional Isolates from Rust and send
and receive messages from them. This is preliminary work to support
running the typescript compiler in a separate isolate and thus support
native ES modules. Ref #975.
2019-01-08 14:44:06 -05:00
Ryan Dahl
9ff6bca863
Isolate::execute_mod wrap filename in CString (#1479)
When we called js_filename.as_ptr() without using CString it wasn't
necessarally null terminated, which was creating spurious failures.
2019-01-08 14:42:53 -05:00
Ryan Dahl
fc20b977c0 Bump deno version to v0.2.6
Original: 72b2e20f9d
2019-01-08 09:55:53 -05:00
Kevin (Kun) "Kassimo" Qian
2558d6e184 Use multimap with Persistent module handle to avoid IdentityHash collision (#1466) 2019-01-07 21:18:32 -05:00
Ryan Dahl
404e6f8634 v0.2.6 2019-01-07 17:33:06 -05:00
Kevin (Kun) "Kassimo" Qian
3dd70d411a path: remove export = module (denoland/deno_std#95)
Original: a0b5aec823
2019-01-07 10:39:36 -05:00
Ryan Dahl
bc2c808da1
Upgrade crates (#1471) 2019-01-07 10:36:08 -05:00
Yoshiya Hinosawa
cae71ed841 Implement console.groupCollapsed (#1452)
This implementation of groupCollapsed is intentionally different
from the spec defined by whatwg. See the conversation in #1355
and #1363.
2019-01-06 16:34:52 -05:00
Ryan Dahl
1b7938e3aa
Add libdeno.builtinModules (#1463)
This is needed to support builtin modules like

    import { open } from "deno"
2019-01-06 16:32:21 -05:00
Yusuke Sakurai
7907bfc4c9 Add web socket module (denoland/deno_std#84)
Original: 2606e295c7
2019-01-06 14:26:18 -05:00
Ryan Dahl
c164e696d7 Fix format globs (denoland/deno_std#87)
Original: 297cf0975e
2019-01-06 14:19:15 -05:00
Ryan Dahl
f37d67e809
Revert "Split Runner from Compiler" (#1462)
This reverts commit 3d03f5b0cb.
2019-01-06 14:17:13 -05:00
Ryan Dahl
57301909cd
Add deno.pid (#1464) 2019-01-06 14:16:42 -05:00
Mark Tiedemann
028d8e4d90 Add Scoop installation command to README.md (#1467) 2019-01-05 16:11:57 -05:00
Mark Tiedemann
c3b612ac21 Add Scoop installation command to Docs.md (#1468) 2019-01-05 16:11:04 -05:00
Adam Conrad
f44322128b Add Event web API (#1059) 2019-01-05 10:02:44 -05:00
Srijan Reddy
68584f983e Windows CI should use a fixed version of deno (denoland/deno_std#89)
Original: 4e12c2b4d2
2019-01-05 09:58:18 -05:00
Masashi Hirano
7c62da8975 Fix to use unknown type in testing/mod.ts (denoland/deno_std#73)
Original: 8221924d9a
2019-01-04 11:59:50 -05:00
Srijan Reddy
7879a8515f Azure windows pipeline (denoland/deno_std#85)
Fixes denoland/deno_std#34
Original: 2ece847a82
2019-01-04 09:15:43 -05:00
木杉
ad01085406 docs: update testing module url (#1459) 2019-01-04 05:11:58 -05:00
Satya Rohith
ed80bcb02a docs(readme): fix small typo (denoland/deno_std#82)
Original: e504e54524
2019-01-04 05:10:57 -05:00
木杉
f918e3faac fix(testing): readme import url (denoland/deno_std#81)
Original: 9d3d90560c
2019-01-04 05:09:42 -05:00
Ryan Dahl
9e19717d75 Remove logging's flaky basicTest (denoland/deno_std#83)
Original: 6754d468d8
2019-01-04 03:39:53 -05:00
Ryan Dahl
d8ea4629c8 First pass on style guide (denoland/deno_std#66)
Original: 2916791dfb
2019-01-03 23:13:21 -05:00
Ryan Dahl
0aea8cb086 Remove travis, rely on pipelines (denoland/deno_std#68)
Original: 63d4f6d828
2019-01-03 23:11:40 -05:00
Ryan Dahl
ea6c9f2f36
Revert "use byte array instead of string for code fetch (#1307)" (#1455)
This reverts commit e976b3e041.

There is nothing technically wrong with this commit, but it's adding
complexity to a big refactor (native ES modules #975). Since it's not
necessary and simply a philosophical preference, I will revert for now
and try to bring it back later.
2019-01-03 22:11:01 -05:00
Satya Rohith
6be1164d89 Remove assertion for empty modules (#1450) 2019-01-03 22:09:07 -05:00
Dmitry Sharshakov aka. sh7dm
fc1bb41ec4 Create .editorconfig (denoland/deno_std#74)
Original: 66baebf8bd
2019-01-03 17:37:49 -05:00
Ryan Dahl
4f62a56f90
Move testing module to deno_std (#1451)
Upgrades deno_std submodule.
2019-01-03 14:55:22 -05:00
Masashi Hirano
4dd52719de Add testing/README.md (denoland/deno_std#75)
Original: 9552f28daf
2019-01-03 14:16:15 -05:00
Ryan Dahl
a8d326b431
resolve_module: handle "." and ".." referrers (#1454) 2019-01-03 12:51:56 -05:00
Bartek Iwańczuk
8d682b4d49 Make README readable on mobile (denoland/deno_std#71)
Original: 2d9a9cdfd1
2019-01-03 11:40:09 -05:00
Dmitry Sharshakov aka. sh7dm
64b8f80980 Add datetime utils (denoland/deno_std#72)
Original: b490638746
2019-01-03 10:19:20 -05:00
Ryan Dahl
e809673cec AppVeyor: Disable DENO_BUILD_PATH cache.
Seems to be necessary to get the previous commits to compile correctly.
2019-01-03 09:45:40 -05:00
Ryan Dahl
7024d9f253 Add rust binding and test for deno_execute_mod() 2019-01-03 09:45:40 -05:00
Ryan Dahl
bba0ed3185 Add ESM support to libdeno
Introduces deno_execute_mod() for executing ES modules.
2019-01-03 09:45:40 -05:00
Ryan Dahl
cbb18a596a Properly internalize V8 strings. 2019-01-03 09:45:40 -05:00
Ryan Dahl
d2b85d4904 Use camel-case for libdeno::deno_recv_cb
For better greppability and conformance with other symbols in libdeno.rs
2019-01-03 09:45:40 -05:00
Ryan Dahl
a7271b7fe5 ci: use RUST_BACKTRACE=full 2019-01-03 09:45:40 -05:00
Ryan Dahl
66a603cb73 travis: remove -j2 flags 2019-01-03 09:45:40 -05:00
Kevin (Kun) "Kassimo" Qian
8d452d74fa Support more fetch init body types (#1449) 2019-01-03 06:41:20 -05:00
Ryan Dahl
5b9c488921 Fix test js_error_apply_source_map_2
If the project is checked out into a directory not called "deno" this
test fails.
2019-01-03 05:41:51 -05:00