Ryan Dahl
787832c68e
Format.
2018-09-03 10:45:58 -04:00
Kitson Kelly
77faad8070
Unit tests for circular references
2018-09-02 11:28:45 -04:00
Kitson Kelly
739ef6a8ec
Fix circular dependencies
2018-09-02 11:28:45 -04:00
ShinDarth
bbc4e55bda
Minor code refactoring
2018-09-01 21:59:52 -04:00
liuyi
2eb80f3617
Refactor code to be same style
2018-09-01 16:47:43 -04:00
Kitson Kelly
b3dac82887
Remove lib.globals.d.ts
2018-09-01 15:06:03 -04:00
Kitson Kelly
f83aee02e6
Bundle most types into globals.d.ts ( #642 )
2018-09-01 10:45:26 -04:00
Aaron Power
9b7e5a2558
Document lStatSync & statSync and correct FileInfo.
2018-08-31 16:18:31 -04:00
Aaron Power
f131445a46
Implemented deno.env and refactored flags.rs
2018-08-31 13:18:24 -04:00
Ryan Dahl
45dafe15ee
Refactor libdeno.send() code to reduce boilerplate.
...
Also removes assignCmdId as it's currently unused.
2018-08-31 10:43:11 -04:00
Ryan Dahl
0ec629d105
format
2018-08-30 14:41:55 -04:00
Ryan Dahl
2dd9a8d028
Reorganize js/unit_tests.ts
2018-08-30 14:41:55 -04:00
Aaron Power
b86bf4d8a4
Implemented statSync and lStatSync
2018-08-30 12:39:33 -04:00
ztplz
b2cd71ddce
add type declaration
2018-08-30 03:21:05 -04:00
Bert Belder
ceaf822682
Implement makeTempDirSync()
2018-08-29 22:40:05 +02:00
Ryan Dahl
0c2abb9339
Allow filtering of unit tests.
2018-08-29 12:05:58 -04:00
Kitson Kelly
634a9e3932
Updates to compiler.ts comments and logging.
2018-08-28 08:44:34 -04:00
Kitson Kelly
54aefa2886
Two-pass module evaluation.
...
Plus changes to tests to accomodate.
2018-08-28 08:44:34 -04:00
Bert Belder
7e3d9f8f2b
format
2018-08-28 02:01:41 +02:00
Ryan Dahl
e13f3c10ca
Add ability to unit test by permissions.
2018-08-27 17:51:24 -04:00
Ryan Dahl
722c7e4a1b
Add deno.argv.
2018-08-27 17:51:24 -04:00
Aaron Power
f43259e5ab
Moved console tests to own file, and switched circular test to use stringify with assertEqual
2018-08-27 17:18:37 -04:00
Aaron Power
0f1db89aa6
Fixed printing strings in arrays & objects without quotes
2018-08-27 13:45:29 -04:00
Yoshiya Hinosawa
17d6d6b336
refactor: add and use libdeno.setGlobalErrorHandler instead of window.onerror
2018-08-26 11:03:41 -04:00
Francesco Borzì
84c38f34ee
Prevent circular imports in ts code ( #576 )
2018-08-25 15:42:49 -04:00
Kitson Kelly
c003df53ab
Integrate ScriptSnapshot into ModuleMetaData
2018-08-24 17:16:54 -04:00
Kitson Kelly
59231d74b5
Improve DenoCompiler.makeDefine and localRequire
2018-08-23 17:55:22 -04:00
Ryan Dahl
242e68e50c
fmt
2018-08-23 09:41:08 -04:00
Ryan Dahl
7d7263c48f
Implement writeFileSync
...
In collaboration with Tommy Savaria <tommy.savaria@protonmail.ch>
2018-08-22 18:39:07 -04:00
Ryan Dahl
e7cab71574
runtime.ts refactor into compiler.ts ( #564 )
...
Adds compiler_test.ts
2018-08-22 17:17:26 -04:00
Ryan Dahl
790baae673
Expose deno.exit() and add test.
2018-08-21 18:34:56 -04:00
Ryan Dahl
18d495c7d1
Better error handling in src/handlers.rs
...
Introduces error codes that are shared between JS/RS
Fixes #526 .
2018-08-21 15:37:45 -04:00
Ryan Dahl
5d866161f8
Fix TS errors in fetch.ts
2018-08-20 21:20:15 -04:00
Ryan Dahl
868e8d8866
First pass at fetch()
...
With help from Thomas Ghysels <info@thomasg.be>
2018-08-20 16:53:39 -04:00
Bartek Iwańczuk
66f0e93b4c
add notImplemented and unreachable util functions ( #540 )
2018-08-19 15:04:27 -04:00
Yoshiya Hinosawa
aaabc853e8
chore: move libdeno files to //libdeno/
2018-08-19 11:27:47 -04:00
Ryan Dahl
17b9c5c390
Command line flag parsing ( #524 )
...
In particular this allow -D for logging debug output.
2018-08-17 16:34:30 -04:00
Yoshiya Hinosawa
565a21eb0e
chore: format files in tests/
2018-08-17 12:43:21 -04:00
Ryan Dahl
36d82374cf
Implement deno_handle_msg_from_js in Rust
...
Fixes #419 , #414 .
2018-08-16 08:40:11 -04:00
Kitson Kelly
168d92f5d2
Use typescript strict mode ( #505 )
2018-08-15 12:40:30 -04:00
Kitson Kelly
e9d692ef70
Use @internal
with js/timers.ts
2018-08-13 11:54:10 -04:00
Ryan Dahl
c7ce450ee9
Rename mock_runtime_test to libdeno_test
...
Fixes #465
2018-08-11 09:02:07 -07:00
Ryan Dahl
89eee51f07
Use unit_tests for readFileSync testing.
2018-08-11 09:02:07 -07:00
Kitson Kelly
e28d7abc1c
Only emit declarations for generated files ( #502 )
...
and remove declarationMap flag from generated tsconfig
2018-08-10 10:46:09 -07:00
Ryan Dahl
9d90c4ae95
Adds js/unit_tests.ts ( #448 )
2018-08-09 14:48:17 -07:00
Ryan Dahl
413bcf2042
Add readFileSync
2018-08-09 14:27:46 -07:00
Ryan Dahl
040a042679
Add TextEncoder/TextDecoder support.
...
Fixes #470
This commit increases size:
out/release/gen/bundle/main.js 7.3M -> 7.9M
out/release/gen/bundle/main.js.map 11M -> 12M
out/release/gen/snapshot_deno.bin 34M -> 37M
out/release/deno 49M -> 53M
Note the amount in the JS code added is quite small:
4.0K node_modules/text-encoding/index.js
4.0K node_modules/@types/text-encoding/index.d.ts
4.0K js/text_encoding.ts
Unclear to me what is causing the jump in snapshot size.
2018-08-09 14:27:46 -07:00
Ryan Dahl
fb87cb38ec
First pass at setTimeout with Tokio ( #434 )
2018-08-09 12:17:08 -07:00
Ryan Dahl
51380bf399
Organize libdeno functions.
2018-08-08 18:35:26 -07:00
Ryan Dahl
7895964ee1
Better error for 'No such asset'
2018-08-08 18:35:26 -07:00