andy finch
48bf419669
Separate behavior for the compiler isolate ( #1973 )
2019-03-19 20:55:59 -04:00
Ryan Dahl
fa3c35301a
Rename //src/ to //cli/ ( #1962 )
...
To better distinguish the deno_core crate from the executable deno,
which will now be called "the cli" internally.
2019-03-19 12:18:05 -04:00
andy finch
cdfd32dd74
Re-implement init scripts in core ( #1958 )
...
Re-enables arm64 CI test
2019-03-18 20:03:37 -04:00
Ryan Dahl
34a2aa4de6
Remove Eager read, write, accept ( #1959 )
...
Removing this reduces tail latency in test/http_bench.ts by half.
2019-03-18 19:06:48 -04:00
Ryan Dahl
44773c9b0f
Integrate //core into existing code base
...
This disables a few tests which are broken still:
- tests/error_004_missing_module.test
- tests/error_005_missing_dynamic_import.test
- tests/error_006_import_ext_failure.test
- repl_test test_set_timeout
- repl_test test_async_op
- repl_test test_set_timeout_interlaced
- all of permission_prompt_test
2019-03-18 17:17:08 -04:00
andy finch
08a674bf91
More permissions prompt options ( #1926 )
2019-03-18 16:46:23 -04:00
andy finch
7e09221031
--no-prompt flag for non-interactive environments ( #1913 )
2019-03-13 12:43:47 -04:00
Ryan Dahl
58cc69f672
Make timers act like normal ops
...
This is in preperation for core integration.
2019-03-12 19:25:57 -04:00
Ryan Dahl
9691d7b53b
Sort ops
2019-03-12 19:25:57 -04:00
Ryan Dahl
72f9a2e20d
core: Abstract out Behavior from Isolate ( #1904 )
...
Move v8_set_flags and v8_version to core. (The idea is that src/ should
not depend on libdeno.rs anymore. This is a step towards that.)
2019-03-11 17:57:36 -04:00
andy finch
8c7a12d1b2
Add basic Arm64 build to CI ( #1887 )
2019-03-08 13:11:05 -05:00
Kitson Kelly
24d6bf6aeb
Remove 'deno' builtin module ( #1895 )
2019-03-07 21:56:56 -05:00
Andy Hayden
91364cabae
Replace deno.land/x/std with deno.land/std ( #1890 )
2019-03-06 10:23:47 -05:00
andy finch
da004fb6c8
fix snapshots in gn build ( #1886 )
...
Bug introduced in 75fe80d5a4
2019-03-05 17:26:59 -05:00
andy finch
75fe80d5a4
use-snapshots
build option for cross compile support. (#1852 )
2019-03-04 18:09:35 -05:00
Simon Menke
77d7ad61f3
Allow inspection and revocation of permissions ( #1875 )
2019-03-04 11:04:19 -05:00
andy finch
2af04e674d
Add write permissions requirement to op_fetch_module_meta_data
. ( #1874 )
2019-03-03 16:52:41 -05:00
andy finch
8c310d3d56
Permissions refactor ( #1864 )
...
Refactored permissions to be assignable on a per-isolate
basis, and added a fix for #1858 to op_fetch_module_meta_data.
2019-03-01 19:25:50 -05:00
Ryan Dahl
b3b989ffdc
Use deno_core::JSError in deno ( #1855 )
...
src/js_errors.rs takes care of source maps and color while
core/js_errors.rs is just the basic struct.
2019-02-28 16:19:04 -05:00
Ryan Dahl
33a6409db9
Add NO_COLOR to CLI usage ( #1843 )
2019-02-27 00:14:10 -05:00
Ryan Dahl
b8a537d020
deno_core ( #1827 )
...
A new low-level crate with focus on speed.
This doesn't yet hook into the existing code base.
2019-02-26 17:36:05 -05:00
Bartek Iwańczuk
5dfbbbb07a
Add import.meta.main ( #1835 )
2019-02-26 13:29:45 -05:00
andy finch
9ed413b318
Updated some type assertions to work with other libc implementations. ( #1837 )
2019-02-26 03:56:19 -05:00
Ryan Dahl
c0b8756797
build: fix deps for deno_runtime_declaration
2019-02-18 23:04:59 -05:00
Ryan Dahl
42408febe8
Add window.location
2019-02-18 23:04:59 -05:00
Bartek Iwańczuk
27afbd1351
Match TypeScript & JavaScript error colors ( #1793 )
2019-02-18 19:20:07 -05:00
Kevin (Kun) "Kassimo" Qian
077af20ceb
Add seek
and implement Seeker
on File
( #1797 )
...
This patch contains a special hack that circumvents the current tokio
seek problem.
tokio `seek` is implemented to take ownership of the original File and
emit a new one in its future, which conflicts with the design of
ResourceTable.
To avoid the problem, the current hack makes the FsFile resource
an Option which we could `take` the value ownership out of it. We then
convert the tokio File into a Rust std File, perform the seek, and then
put it back into the resource.
This might be able to drop this hack after
https://github.com/tokio-rs/tokio/pull/785 lands.
2019-02-18 18:26:41 -05:00
Kitson Kelly
54094c7510
Rationalise compiler ops ( #1740 )
2019-02-18 10:42:15 -05:00
Dmitry Sharshakov
4dc4329e27
Add execPath function ( #1743 )
2019-02-15 11:22:02 -05:00
Greg Altman
061a9353ba
Module dep pretty printing in --info
2019-02-15 11:06:49 -05:00
Yoshiya Hinosawa
2241049c34
feat: env option in run api ( #1773 )
2019-02-15 10:37:04 -05:00
Philipp A
e782ba1a6f
Use proper directory for cache files ( #1763 )
...
Operating systems have defined directories for cache files.
That allows them to do smart things such as leaving them out when doing a backup,
or deleting them when disk space gets low.
Also a %home%\.deno folder on windows made no sense whatsoever.
Fixes #481
2019-02-13 08:57:00 -05:00
Kevin (Kun) "Kassimo" Qian
163c334521
Drop assert!() from untrack_task() ( #1757 )
2019-02-12 21:51:45 -05:00
Ryan Dahl
677a48781d
Include deno version in source_code_hash ( #1751 )
...
Fixes #472
2019-02-12 15:20:54 -05:00
Kevin (Kun) "Kassimo" Qian
489c69f8e1
REPL multiline support with recoverable errors ( #1731 )
2019-02-11 14:01:28 -05:00
Kevin (Kun) "Kassimo" Qian
1d36eb47eb
Support scoped variables, unblock REPL async op, and REPL error colors ( #1721 )
2019-02-09 16:55:40 -05:00
J2P
636e234e4c
Fix read permission message
2019-02-09 05:57:41 -05:00
Ryan Dahl
526497bc29
Adds deno.noColor ( #1716 )
2019-02-08 22:13:04 -05:00
Ryan Dahl
99ce807a12
Add deps to --info output. ( #1720 )
...
Move module stuff into its own file.
2019-02-08 21:36:10 -05:00
Dmitry Sharshakov
9ab03389f0
Add --allow-read ( #1689 )
...
Co-authored-by: Greg Altman <g.s.altman@gmail.com>
2019-02-08 15:59:38 -05:00
bokuweb
ca397f6793
fix clippy warnings ( #1711 )
2019-02-08 11:14:33 -05:00
Ryan Dahl
46804e50ed
Color exceptions ( #1698 )
2019-02-07 20:07:20 -05:00
Dmitry Sharshakov
5c50d2819b
Add emojis to permission prompts ( #1684 )
2019-02-07 16:19:50 -05:00
jingweicai
37b05740fa
fix: do not load cache files when recompile flag is set ( #1695 )
2019-02-06 23:42:34 -05:00
Dmitry Sharshakov
181b03273c
Add isTTY function ( #1622 )
2019-02-02 22:05:30 -05:00
Kitson Kelly
efa1eeb8b3
Compiler cleanups and minor improvements ( #1656 )
2019-02-02 18:27:53 -05:00
Ryan Dahl
18b815e336
Support --fmt
2019-02-02 17:48:43 -05:00
Kevin (Kun) "Kassimo" Qian
c144733f72
Avoid --info crash on missing filename ( #1660 )
2019-02-02 17:39:28 -05:00
Ryan Dahl
4b61170e22
Better error message for bad filename CLI argument.
2019-02-02 17:33:21 -05:00
Ryan Dahl
1770a77bca
Clean up return value of deno_execute
...
and deno_respond
2019-02-02 16:46:31 -05:00