summaryrefslogtreecommitdiff
path: root/js/unit_tests.ts
AgeCommit message (Collapse)Author
2019-01-13Cleanup compiler and re-enable tests (#1512)Kitson Kelly
2019-01-13chore: re-enable test of website (#1508)Yoshiya Hinosawa
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-06Revert "Split Runner from Compiler" (#1462)Ryan Dahl
This reverts commit 3d03f5b0cb3c513e449f3aaa5d35c493b72f47b4.
2019-01-05Add Event web API (#1059)Adam Conrad
2018-12-23Remove support for extensionless import (#1396)Ryan Dahl
2018-12-17Add URL implementation (#1359)Kitson Kelly
2018-12-06Process source maps in Rust instead of JS (#1280)Ryan Dahl
- Improves speed and binary size significantly. - Makes deno_last_exception() output a JSON structure. - Isolate::execute and Isolate::event_loop now return structured, mapped JSError objects on errors. - Removes libdeno functions: libdeno.setGlobalErrorHandler() libdeno.setPromiseRejectHandler() libdeno.setPromiseErrorExaminer() In collaboration with Ryan Dahl.
2018-11-20Split Runner from CompilerKitson Kelly
2018-11-16First pass at running subprocesses (#1156)Bert Belder
2018-11-08build: Use target/ instead of out/ (#1153)Ryan Dahl
2018-11-04Add deno.Buffer (#1121)Ryan Dahl
Do not confuse this with Node's Buffer. This is a direct port of Go's bytes.Buffer - it allows buffering of Reader and Writer objects.
2018-11-04Web APIs: `File` and `FormData` (#1056)Kyra
2018-11-02Move fetch headers into its own file.Ryan Dahl
2018-10-30Add resources op (#1119)Bartek Iwańczuk
2018-10-27Minor sorting not handled by format.Ryan Dahl
2018-10-26Remove broken feature: trace()Ryan Dahl
2018-10-26Add chmod/chmodSync on unix (and fix Cargo.toml) (#1088)Kevin (Kun) "Kassimo" Qian
Initial implementation by Srijan Reddy (@srijanreddy98, #672).
2018-10-23Make Headers more idiomatic (#1062)Kitson Kelly
2018-10-21Add URLSearchParams (#1049)Kyra
2018-10-19Add missing copyrights (#1024)ztplz
2018-10-19 Make fetch header compliant with the current spec (#1019)ztplz
2018-10-13Add cwd() and chdir() (#907)Shiva Prasanth
2018-10-11Add deno.metrics()Bartek Iwańczuk
2018-10-03First pass at support for TCP servers and clients. (#884)Ryan Dahl
Adds deno.listen(), deno.dial(), deno.Listener and deno.Conn.
2018-10-03Implemented readDirSync, readDirJ2P
2018-09-30Add copyFile/copyFileSync (#863)Kevin (Kun) "Kassimo" Qian
2018-09-30Add deno.truncate (#805)ztplz
2018-09-28Adds basic File I/O and FD table.Ryan Dahl
Adds deno.stdin, deno.stdout, deno.stderr, deno.open(), deno.write(), deno.read(), deno.Reader, deno.Writer, deno.copy(). Fixes #721. tests/cat.ts works.
2018-09-25Implement deno.readlink() (#797)Mani Maghsoudlou
2018-09-24Add `toString` for CallSite of eval origin (#809)Kevin (Kun) "Kassimo" Qian
2018-09-24Start testing website (#813)Yoshiya Hinosawa
2018-09-22Implement deno.trace() (#795)Kevin (Kun) "Kassimo" Qian
2018-09-20Add atob() and btoa() (#776)Kevin (Kun) "Kassimo" Qian
2018-09-20Add deno.arch/deno.platform (#773)Kevin (Kun) "Kassimo" Qian
2018-09-18Implement deno.symlink() (#742)Mani Maghsoudlou
2018-09-16Remove remove_timer asserts (#760)Kevin (Kun) "Kassimo" Qian
* Remove remove_timer asserts * Add clearTimeout invalid id no-panic test * Move timer test to its file AND some lint side-effects
2018-09-14Implement BlobParsa Ghadimi
2018-09-12feat: add deno.makeTempDirYoshiya Hinosawa
2018-09-12Implement deno.rename() (#731)Mani Maghsoudlou
2018-09-11Implement deno.stat() and deno.lstat()Sajjad Hashemian
2018-09-11Move writeFileSync to write_file.ts, add writeFile and tests (#728)Kevin (Kun) "Kassimo" Qian
2018-09-10Implement deno.mkdir()Sajjad Hashemian
2018-09-10Implement deno.readFile()Ryan Dahl
As an example of how to implement ops that have both sync and async versions.
2018-08-30Reorganize js/unit_tests.tsRyan Dahl
2018-08-30Implemented statSync and lStatSyncAaron Power
2018-08-29Implement makeTempDirSync()Bert Belder
2018-08-27Add ability to unit test by permissions.Ryan Dahl
2018-08-27Moved console tests to own file, and switched circular test to use stringify ↵Aaron Power
with assertEqual
2018-08-27Fixed printing strings in arrays & objects without quotesAaron Power