summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-01-16Remove resolve_addr::tests::resolve_addr_err (#1531)Ryan Dahl
On some nameservers bad domain names still resolve.
2019-01-16use upper case name for static variable `c_rid` (#1537)wangcong
2019-01-15Kill all pending accepts when TCP listener is closed (#1517)Kevin (Kun) "Kassimo" Qian
2019-01-15 Add --prefetch flag for deps prefetch without running (#1475)Kevin (Kun) "Kassimo" Qian
2019-01-15Clippy fixes (also fixes build with nightly) (#1527)Bert Belder
2019-01-14trim_left_matches (deprecated) => trim_start_matches (#1524)Kevin (Kun) "Kassimo" Qian
2019-01-14Update to rust 2018 editionAndy Hayden
2019-01-13Properly parse network addresses. (#1515)Ryan Dahl
2019-01-14src: remove dependency on the 'kernel32' crateBert Belder
2019-01-12Avoid show confusing lines in gen/bundle/main.js that throws error (#1502)Kevin (Kun) "Kassimo" Qian
2019-01-11Pipe new exception info through into JSErrorRyan Dahl
Adds a new integration test for syntax error.
2019-01-09Re-enable --recompile (#1492)Ryan Dahl
2019-01-09Native ES modules (#1460)Ryan Dahl
* Native ES modules This is a major refactor of internal compiler. Before: JS and TS both were sent through the typescript compiler where their imports were parsed and handled. Both compiled to AMD JS and finally sent to V8 Now: JS is sent directly into V8. TS is sent through the typescript compiler, but tsc generates ES modules now instead of AMD. This generated JS is then dumped into V8. This should much faster for pure JS code. It may improve TS compilation speed. In the future this allows us to separate TS out of the runtime heap and into its own dedicated snapshot. This will result in a smaller runtime heap, and thus should be faster. Some tests were unfortunately disabled to ease landing this patch: 1. compiler_tests.ts which I intend to bring back in later commits. 2. Some text_encoding_test.ts tests which made the file invalid utf8. See PR for a discussion. Also worth noting that this is necessary to support WASM
2019-01-09Add --allow-all flag (#1482)Ryan Dahl
2019-01-08Minimal Worker support (#1476)Ryan Dahl
This adds the ability to spawn additional Isolates from Rust and send and receive messages from them. This is preliminary work to support running the typescript compiler in a separate isolate and thus support native ES modules. Ref #975.
2019-01-08Isolate::execute_mod wrap filename in CString (#1479)Ryan Dahl
When we called js_filename.as_ptr() without using CString it wasn't necessarally null terminated, which was creating spurious failures.
2019-01-06Revert "Split Runner from Compiler" (#1462)Ryan Dahl
This reverts commit 3d03f5b0cb3c513e449f3aaa5d35c493b72f47b4.
2019-01-06Add deno.pid (#1464)Ryan Dahl
2019-01-03Revert "use byte array instead of string for code fetch (#1307)" (#1455)Ryan Dahl
This reverts commit e976b3e0414dc768624b77e431ee7f55b03b76a4. There is nothing technically wrong with this commit, but it's adding complexity to a big refactor (native ES modules #975). Since it's not necessary and simply a philosophical preference, I will revert for now and try to bring it back later.
2019-01-03resolve_module: handle "." and ".." referrers (#1454)Ryan Dahl
2019-01-03Add rust binding and test for deno_execute_mod()Ryan Dahl
2019-01-03Use camel-case for libdeno::deno_recv_cbRyan Dahl
For better greppability and conformance with other symbols in libdeno.rs
2019-01-03Fix test js_error_apply_source_map_2Ryan Dahl
If the project is checked out into a directory not called "deno" this test fails.
2019-01-02Happy new year!Ryan Dahl
2018-12-27Lazily create .mime files only with mismatch/no extension (#1417)Kevin (Kun) "Kassimo" Qian
2018-12-23Remove support for extensionless import (#1396)Ryan Dahl
2018-12-22make stdout unbuffered (#1355)Yoshiya Hinosawa
2018-12-21Avoid fetch segfault on empty Uri (#1394)Kevin (Kun) "Kassimo" Qian
2018-12-19log: bump default minimum log level to "warn"Bert Belder
2018-12-19build: fix RLS-invoked 'cargo check' buildBert Belder
2018-12-14remove repeative permission checks (#1350)F001
2018-12-13Check that IsolateState is thread safe. (#1321)Ryan Dahl
2018-12-13Merge deno_new_snapshotter behavior into deno_new (#1318)Ryan Dahl
2018-12-13Fix deno.open permission check (#1336)Kevin (Kun) "Kassimo" Qian
2018-12-13Read version from Cargo.toml (#1267)Goffert van Gool
2018-12-12Flesh out open() modes (#1282)Bartek IwaƄczuk
2018-12-12Change default to false Base.boolTnarita0000
2018-12-12js_errors: rename source_url to script_name (#1329)ggtmtmgg
2018-12-12use byte array instead of string for code fetch (#1307)F001
2018-12-12Simplify src fetch logic and auto append suffix in cache search (#1322)Kevin (Kun) "Kassimo" Qian
2018-12-12readDir entry mode (#1326)Kevin (Kun) "Kassimo" Qian
2018-12-11Remove custom panic handler.Ryan Dahl
This was introduced because Tokio would swallow panics. This is still the case, but this panic handler causes more problems than it solves. It requires people to know how to use debuggers to inspect stacktraces. TODO: - Fix Tokio to not swallow errors. - Be vigilant in the intrim to not introduce broken tests due to this unfortunate "feature" of tokio.
2018-12-11Use default filename for Isolate::execute.Ryan Dahl
2018-12-11Remove dead code: ASSET_PREFIXRyan Dahl
2018-12-11deno_dir: move tests into submoduleRyan Dahl
2018-12-11Minor rename for CodeFetch parametersRyan Dahl
This bring it inline with terminology used in V8 See ResolveCallback in v8.h
2018-12-11Replace blocking! macro by generic function (#1305)F001
2018-12-10Use stderr for exceptions (#1303)Ryan Dahl
2018-12-09Add TooLarge error code for buffers (#1298)binaryta
In collaboration with @yushimatenjin
2018-12-07v0.2.2Ryan Dahl
- Don't crash when .mime file not exist in cache (#1291) - Process source maps in Rust instead of JS (#1280) - Use alternate TextEncoder/TextDecoder implementation (#1281) - Upgrade flatbuffers to 80d148 - Fix memory leaks (#1265, #1275)