1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-04 08:54:20 -05:00
Commit graph

3237 commits

Author SHA1 Message Date
迷渡
efe9c18b45 remove console constructor (#1985) 2019-03-22 11:35:49 -04:00
Ryan Dahl
12753e492f
Website updates (#1984) 2019-03-22 11:34:47 -04:00
andy finch
1499d57490 Remove dead code (#1983) 2019-03-21 15:52:30 -04:00
Simon Menke
93793dc455 core: Allow terminating an Isolate from another thread (#1982) 2019-03-21 09:48:19 -04:00
Ryan Dahl
94405bb617
Fix clippy errors and upgrade Rust to 1.33.0 in CI (#1945) 2019-03-20 18:55:52 -04:00
Ryan Dahl
223a2adbb4 v0.3.4 2019-03-20 18:54:47 -04:00
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
Axetroy
aae6ea51a4 move test file out of tests dir in flags module (denoland/deno_std#293)
Original: e80f144890
2019-03-19 13:24:11 -04:00
Axetroy
adb19cbae3 remove unnecessary path.resolve in move/readJson/writeJson (denoland/deno_std#292)
Original: a00c51b05b
2019-03-19 13:23:22 -04:00
Axetroy
eaa795d477 fix: wrong usage of assertThrowsAsync which without await keyword (denoland/deno_std#295)
Original: 59adafe867
2019-03-19 13:22:33 -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
Vincent LE GOFF
4ac66ec640 Test reorganization (denoland/deno_std#290)
Original: 0bb040e8d4
2019-03-18 12:49:54 -04:00
Axetroy
e12d5521bf fix: fs.exists not work for symlink (denoland/deno_std#291)
Original: 264a51c093
2019-03-18 12:34:54 -04:00
Vincent LE GOFF
2e1ed890b8 Documentation clean up (denoland/deno_std#288)
Original: b699fa67be
2019-03-18 11:08:01 -04:00
Yoshiya Hinosawa
d1b0a1ef6c Add prettier styling options (denoland/deno_std#281)
Original: fae48d5dfb
2019-03-17 18:23:21 -04:00
Nikola Ristic
22f791c26c Typo fix in styleguide (#1946) 2019-03-17 12:54:06 -04:00
Axetroy
942df0be0d extract internal method isSubdir to fs/utils.ts (denoland/deno_std#285)
Original: da4abcd9a3
2019-03-17 12:34:55 -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
8acdecd72d Add strings/pad (denoland/deno_std#282)
Original: 6e0bec1f94
2019-03-15 12:02:38 -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
Ryan Dahl
83474802e9 Bump to v0.3.3 (denoland/deno_std#279)
Original: c44fbec135
2019-03-14 11:18:19 -04:00