1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-17 17:03:48 -05:00
Commit graph

8392 commits

Author SHA1 Message Date
Kevin (Kun) "Kassimo" Qian
2b8cee9a49 Check thrown type, print String(...) if not instance of error (#939)
Fixes #935
2018-10-08 11:36:09 -04:00
Kitson Kelly
ffb41e61f1 Updates to js to clean up default library 2018-10-07 22:52:27 -04:00
Yoshiya Hinosawa
1aa7e18ba3 refactor: stop hard coding some of benchmark names 2018-10-06 23:32:02 -04:00
Yoshiya Hinosawa
48923f48a2 docs: fix urls in comments 2018-10-06 23:26:39 -04:00
ns
8e82fa0af6 Export missing io types from deno 2018-10-06 22:16:42 -04:00
Ryan Dahl
0514f54a22 Make ntasks an atomic counter.
Fixes #919.
2018-10-06 20:24:47 -04:00
Kevin (Kun) "Kassimo" Qian
f1989c68a0 Add failing test for #919. 2018-10-06 20:24:47 -04:00
Ryan Dahl
8fba254c7a Temporarily disable shutdown tests.
The fix for these wasn't immediately obvious - they seem to have been
broken already but were skipped as reported in #919.
2018-10-06 20:24:47 -04:00
Kevin (Kun) "Kassimo" Qian
62a5020602 Fix symlink error message 2018-10-06 20:24:47 -04:00
Ryan Dahl
f998f7b9af Fix unused variable warning in release mode. 2018-10-06 20:24:47 -04:00
Kevin (Kun) "Kassimo" Qian
1ac80feb1c Replace panic with error on windows for symlink 2018-10-05 21:20:34 -04:00
cedric05
ba6c617432 tslint warning supress using tsconfig 2018-10-05 21:13:35 -04:00
Kevin (Kun) "Kassimo" Qian
3c212ddd1e Remove race condition from netCloseReadSuccess test 2018-10-05 21:06:01 -04:00
Ryan Dahl
5f14ec486c Upgrade Flatbuffers 2018-10-05 15:10:54 -04:00
Bert Belder
04b625054a
readme: fix formatting error 2018-10-05 20:31:16 +02:00
Ryan Dahl
c3bce178b8 Clean up helpers in src/errors.rs
* Add errors::bad_resource()
* Move permission_denied() to errors.rs
* Make op_symlink's not_implemented() into a runtime panic.
2018-10-05 14:27:47 -04:00
Ryan Dahl
899a62d5b0 Print test name before it fails. 2018-10-05 14:27:47 -04:00
Ryan Dahl
cfa54cabbd Always die on panic. 2018-10-05 14:27:47 -04:00
Ryan Dahl
ab952e3340 Format 2018-10-05 14:27:47 -04:00
Kevin (Kun) "Kassimo" Qian
941e27d8c1 Implement closeRead/closeWrite using TcpStream::shutdown (#903) 2018-10-05 12:16:23 -04:00
Kitson Kelly
6c42ded097 Hide compiler module (#909)
Fixes #876
2018-10-05 10:13:22 -04:00
Chris Bystrek
6a649012bc Changed tools/lint.py to lint the entire js and tests directories. (#900)
* Changed tools/lint.py to lint the entire js and tests directorys and sub directories, currently it was pointing at tsconfig and would only lint files that were part of js/main.ts or node_modules/typescript/lib/lib.esnext.d.ts and their dependencies

* Broke the typescript linting out into separate steps for the main typescript programing and tests.

* Fixed linting issues in ts tests.
2018-10-05 07:29:55 -04:00
Kitson Kelly
ce9148943c Move Platform from types to platform 2018-10-04 12:31:39 -04:00
Ryan Dahl
5307aa94e1 v0.1.7
- Improve fetch headers (#853)
- Add deno.truncate (#805)
- Add copyFile/copyFileSync (#863)
- Limit depth of output in console.log for nested objects, and add
  console.dir (#826)
- Guess extensions on extension not provided (#859)
- Renames:
  deno.platform -> deno.platform.os
  deno.arch -> deno.platform.arch
- Upgrade TS to 3.0.3
- Add readDirSync(), readDir()
- Add support for TCP servers and clients. (#884)
  Adds deno.listen(), deno.dial(), deno.Listener and deno.Conn.
2018-10-04 08:56:32 -04:00
Yingbo (Max) Wang
1023202634
Update instructions on using ./tools/format.py in README 2018-10-04 02:16:54 -07:00
Bert Belder
b9cdf088e7
format 2018-10-04 02:03:29 -07:00
Bert Belder
8ca082c508
tools/format: format markdown files with prettier 2018-10-04 02:02:23 -07:00
Ryan Dahl
30acfdf331 tslint: no-unused-variable is deprecated.
Since TypeScript 2.9.  We are already using noUnusedLocals in
tsconfig.json.
2018-10-04 00:25:55 -04:00
Ryan Dahl
1331a4882c Better color output in JS unit tests. 2018-10-04 00:25:55 -04:00
Ryan Dahl
2f44db6756 Use underscores in filenames. 2018-10-04 00:25:55 -04:00
Ryan Dahl
818ad37678 Rename fbs to msg. 2018-10-04 00:25:55 -04:00
Ryan Dahl
f774953011 Rename flatbuffer base.msg to base.inner
This better disambiguates with the msg_generated.ts module, which in JS
we call "fbs", but would be better called "msg".
2018-10-04 00:25:55 -04:00
Ryan Dahl
51dc46eff4 Rename msg_from_js() to dispatch(). 2018-10-04 00:25:55 -04:00
Ryan Dahl
d38c4e0ff1 Rename handler.rs to ops.rs 2018-10-04 00:25:55 -04:00
Ryan Dahl
0422b224e8
First pass at support for TCP servers and clients. (#884)
Adds deno.listen(), deno.dial(), deno.Listener and deno.Conn.
2018-10-03 23:58:29 -04:00
Yoshiya Hinosawa
e5e7f0f038 fix: re-enable fixed tests 2018-10-03 21:58:33 -04:00
Yoshiya Hinosawa
202e7445d5 fix: fix //website/app_test.js 2018-10-03 21:58:33 -04:00
Kevin (Kun) "Kassimo" Qian
3c080ca39a
Reenable copyFile tests 2018-10-03 16:22:32 -07:00
Andy Hayden
47508c7207
Update timer test to use #497 test case
This behavior was fixed by #885.
2018-10-03 16:05:00 -07:00
J2P
ea87034e26 Implemented readDirSync, readDir 2018-10-03 18:22:57 -04:00
Ryan Dahl
4c0517c339 Upgrade other JS deps. 2018-10-03 17:06:07 -04:00
Ryan Dahl
522ddbf9d3 Upgrade TS to 3.0.3
We need this specific version because ts-simple-ast depends on it. See
https://github.com/denoland/deno/pull/729#issuecomment-426352887
2018-10-03 17:06:07 -04:00
Ryan Dahl
d39055d79b Clean up deno.platform
Renames:
deno.platform -> deno.platform.os
deno.arch -> deno.platform.arch

Removes unsupported operating systems and CPU architectures from the
types. Uses the string "win" instead of "win32".
2018-10-03 16:59:00 -04:00
Ryan Dahl
0cdf1f451d Rename tsconfig.generated.json to tsconfig.declarations.json 2018-10-03 16:59:00 -04:00
Bert Belder
6cfc6b5d51
test: disable incorrect tests
These tests weren't running because with the old timer implementation
time-outs were sometimes lost, and the test harness uses setTimeout
to throw errors after a test has failed.
2018-10-03 13:28:00 -07:00
Bert Belder
97e08a6fab
isolate: work around a rust compiler bug 2018-10-03 13:27:59 -07:00
Bert Belder
4eeda9ea27
timers: remove the old timer implementation
Fixes #878.
2018-10-03 13:27:59 -07:00
Li Hao
99e2c42d16
timers: add some more unit tests
Closes #682.
2018-10-03 13:27:59 -07:00
Bert Belder
aa691ea26c
timers: implement timers in javascript 2018-10-03 13:27:55 -07:00
Bert Belder
6b77acf39d
ci: set RUST_BACKTRACE=1 2018-10-03 05:35:38 -07:00