Commit Graph

1379 Commits

Author SHA1 Message Date
Ryan Dahl
9831a440ca Disable arm test again
getting this failure on travis:
https://travis-ci.com/denoland/deno/jobs/186518015

  $ $CARGO_TARGET_DIR/aarch64-unknown-linux-gnu/release/deno tests/002_hello.ts
  qemu: Unsupported syscall: 278
  qemu: Unsupported syscall: 278
  Compiling file:///home/travis/build/denoland/deno/tests/002_hello.ts
2019-03-20 18:54:47 -04:00
Ryan Dahl
9444bd71a0
Website and manual improvements (#1967) 2019-03-20 12:39:47 -04:00
Ryan Dahl
842627d6b9 pretty-print long strings 2019-03-20 12:38:59 -04:00
Ryan Dahl
8f334ae568 Improve pretty printing of objects
If an object has more than 5 elements, it is printed in abbeviated form
displaying only the keys. This is useful in the REPL when inspecting
large objects like the Deno namespace:

  > Deno
  { args, noColor, pid, env, exit, isTTY, execPath, chdir, cwd, File,
  open, stdin, stdout, stderr, read, write, seek, close, copy,
  toAsyncIterator, SeekMode, Buffer, readAll, mkdirSync, mkdir,
  makeTempDirSync, makeTempDir, chmodSync, chmod, removeSync, remove,
  renameSync, rename, readFileSync, readFile, readDirSync, readDir,
  copyFileSync, copyFile, readlinkSync, readlink, statSync, lstatSync,
  stat, lstat, symlinkSync, symlink, writeFileSync, writeFile, ErrorKind,
  DenoError, libdeno, permissions, revokePermission, truncateSync,
  truncate, connect, dial, listen, metrics, resources, run, Process,
  inspect, build, platform, version, Console, stringifyArgs,
  DomIterableMixin }
2019-03-20 12:38:59 -04:00
Ryan Dahl
4c831f1eb5
Add more async module loading function (#1974)
* get_source_code_async
* fetch_module_meta_data_async
* fetch_module_meta_data_and_maybe_compile_async
2019-03-20 11:38:43 -04:00
andy finch
48bf419669 Separate behavior for the compiler isolate (#1973) 2019-03-19 20:55:59 -04:00
andy finch
6131152a57 Remove old Buf definition in cli.rs (#1971) 2019-03-19 16:47:35 -04:00
Ryan Dahl
fb2c0c29ec
Add fetch_remote_source_async (#1972) 2019-03-19 16:45:39 -04:00
Ryan Dahl
5e4312de4d Move fetch_remote_source, fetch_local_source
They do not depend on DenoDir, so should not be methods of it.
2019-03-19 14:50:41 -04:00
Ryan Dahl
2c5030000b Add async version of http_util::fetch_sync_string 2019-03-19 14:50:41 -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
Ryan Dahl
c7d81fa9ff Make write_gn_args.py quiet 2019-03-19 03:50:47 -04:00
Ryan Dahl
8f3d0ca664 Deprecate DENO_BUILD_MODE=release
Instead use: tools/build.py --release
2019-03-19 03:50:47 -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
andy finch
e98d3391de Re-enable permissions prompt tests (#1957) 2019-03-18 18:54:59 -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
Ryan Dahl
33438b83a2 Re-order tests for sanity 2019-03-18 17:17:08 -04:00
andy finch
b711a8d047 CI jobs should fail quicker on bad test_format or lint (#1954) 2019-03-18 17:01:08 -04:00
andy finch
08a674bf91 More permissions prompt options (#1926) 2019-03-18 16:46:23 -04:00
Ryan Dahl
59ac2063e0 Remove unused tools/build_test.py file 2019-03-18 14:07:24 -04:00
Ryan Dahl
52b7cc5499 Fix entry point for tools/docs.py 2019-03-18 14:07:24 -04:00
Nikola Ristic
22f791c26c Typo fix in styleguide (#1946) 2019-03-17 12:54:06 -04:00
joemclo
785b48a423 Fix a missing import in manual.md example for testing (#1935) 2019-03-16 17:57:09 -04:00
Vincent LE GOFF
23108b06b9 Add test style guide (#1918) 2019-03-15 18:51:47 -04:00
Bert Belder
62761a4e3a
core: remove reset() from SharedQueue API 2019-03-15 21:57:22 +01:00
Ryan Dahl
bb642e8c7c
Fix TextDecoder for SharedArrayBuffer backed TypedArray (#1940) 2019-03-15 16:29:54 -04:00
Vincent LE GOFF
b2f15cf21a jsdoc style guide update (#1932) 2019-03-15 11:53:21 -04:00
Yoshiya Hinosawa
4dbc33c6e3 docs: fix example (#1936) 2019-03-15 11:52:45 -04:00
Ryan Dahl
1e3509df42 disable arm64 test 2019-03-15 10:58:18 -04:00
Ryan Dahl
1811318097 core: Behavior shouldn't be generic
We always pass around Box<[u8]>, and adding this generic is an
unnecessary complication.

Add deno_core_http_bench_test to test.py

sharedQueue works on deno_core_http_bench
2019-03-15 10:58:18 -04:00
Ryan Dahl
76c73ec61e
Add --no-binary-download option to setup.py (#1916) 2019-03-15 10:06:17 -04:00
Ryan Dahl
45fad1b7cf
allow v8 cli flags on deno_core_http_bench (#1934) 2019-03-15 03:12:56 -04:00
Ryan Dahl
630ead1296
Upload mac/sccache that doesn't link to openssl (#1929)
Fixes #1787
2019-03-14 18:49:41 -04:00
Jack Rowlingson
bf9e5334a8 Fix command in manual.md (#1931) 2019-03-14 10:18:35 -04:00
Ryan Dahl
3dbb06e699 v0.3.3 2019-03-13 13:31: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
6b07ed189c
Small cleanups for //core (#1914)
* Privatize a few deno_core::Isolate methods
* Add deno_core::Isolate docs
2019-03-12 18:47:54 -04:00
Jed Fox
ad21be8370 manual: Improve formatting (#1842) 2019-03-11 23:39:46 -04:00
Ryan Dahl
ae4405d747
Make some renames in js/build.ts (#1912)
* Replace Deno.OSType enum with Deno.OperatingSystem type alias

* Add arm64 to supported CPU architectures

* add type alias for cpu arch Deno.Arch
2019-03-11 20:34:48 -04:00
Ryan Dahl
8828bb8c0e Rename Deno.build.gnArgs to Deno.build.args 2019-03-11 19:05:51 -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
Vincent LE GOFF
830ce93785 Add OSType enum (#1909) 2019-03-11 14:23:11 -04:00
Kitson Kelly
75a500ba81 Update to TypeScript 3.3 (#1908) 2019-03-11 10:53:18 -04:00
Kitson Kelly
034e2cc028 Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
andy finch
8c7a12d1b2 Add basic Arm64 build to CI (#1887) 2019-03-08 13:11:05 -05:00
Yoshiya Hinosawa
aed3e590ba docs: package.ts -> deps.ts (#1903) 2019-03-08 13:10:14 -05:00
Kitson Kelly
24d6bf6aeb Remove 'deno' builtin module (#1895) 2019-03-07 21:56:56 -05:00