summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2019-05-03feat: support .mjs extension resolution (#2283)Kevin (Kun) "Kassimo" Qian
Removed `extmap` and added .mjs entry in `map_file_extension`. The assert in the compiler does not need to be updated, since it is resolving from the compiled cache instead of elsewhere (notice the .map is asserted next to it)
2019-05-03Fix: deno --v8-options does not print v8 options (#2277)Bartek Iwańczuk
2019-04-29Add support for custom tsconfig.json (#2089)Kitson Kelly
Use `--config`
2019-04-21Fix eslint warnings (#2151)Ryan Dahl
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
2019-04-21Refactor CLI entry point (#2157)Bartek Iwańczuk
Changes "deno --types" to "deno types" and "deno --prefetch" to "deno prefetch"
2019-04-17Fix flaky tests (#2139)Ryan Dahl
2019-04-16Implement async module loading in CLI (#2084)Ryan Dahl
2019-04-13Add deno eval subcommand (#2102)Bartek Iwańczuk
2019-04-08Allow high precision performance.now() (#1977)Vincent LE GOFF
2019-04-07Refactor CLI flag parsing (#2025)Bartek Iwańczuk
2019-04-05Add worker benchmarks (#2059)andy finch
2019-04-04Non-fatal compile_sync failures (#2039)andy finch
And model worker resources as Stream
2019-04-01Follow redirect location as new referrers for nested module imports (#2031)Kevin (Kun) "Kassimo" Qian
Fixes #1742 Fixes #2021
2019-04-01Add web worker JS API (#1993)andy finch
* Refactored the way worker polling is scheduled and errors are handled. * Share the worker future as a Shared
2019-03-28Merge the --recompile and --reload flags (#2003)Ryan Dahl
2019-03-27Fix error when JS is executed with --recompile (#2007)Ryan Dahl
test case from @afinch7
2019-03-18Integrate //core into existing code baseRyan Dahl
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-09Migrate from tslint to eslint for linting (#1905)Kitson Kelly
2019-03-07Remove 'deno' builtin module (#1895)Kitson Kelly
2019-03-06Upgrade deno_std (#1892)Ryan Dahl
A major API change was that asserts are imported from testing/asserts.ts now rather than testing/mod.ts and assertEqual as renamed to assertEquals to conform to what is most common in JavaScript.
2019-03-06Replace deno.land/x/std with deno.land/std (#1890)Andy Hayden
2019-02-26Add import.meta.main (#1835)Bartek Iwańczuk
2019-02-25Fix console.table display of Map and move tests to unit test (#1839)Kevin (Kun) "Kassimo" Qian
2019-02-18Add window.locationRyan Dahl
2019-02-18Rationalise compiler ops (#1740)Kitson Kelly
2019-02-15Add execPath function (#1743)Dmitry Sharshakov
2019-02-15Module dep pretty printing in --infoGreg Altman
2019-02-15Remove unnecessary tests/021_info_flag_setup.testRyan Dahl
2019-02-15Fix behavior for extensionless files with .mime file (#1779)Kevin (Kun) "Kassimo" Qian
2019-02-12Add Deno global namespace (#1748)Kitson Kelly
Resolves #1705 This PR adds the Deno APIs as a global namespace named `Deno`. For backwards compatibility, the ability to `import * from "deno"` is preserved. I have tried to convert every test and internal code the references the module to use the namespace instead, but because I didn't break compatibility I am not sure. On the REPL, `deno` no longer exists, replaced only with `Deno` to align with the regular runtime. The runtime type library includes both the namespace and module. This means it duplicates the whole type information. When we remove the functionality from the runtime, it will be a one line change to the library generator to remove the module definition from the type library. I marked a `TODO` in a couple places where to remove the `"deno"` module, but there are additional places I know I didn't mark.
2019-02-08Adds deno.noColor (#1716)Ryan Dahl
2019-02-08Add deps to --info output. (#1720)Ryan Dahl
Move module stuff into its own file.
2019-02-08Add --allow-read (#1689)Dmitry Sharshakov
Co-authored-by: Greg Altman <g.s.altman@gmail.com>
2019-02-07Color exceptions (#1698)Ryan Dahl
2019-02-05Add WebAssembly to runtime library (#1677)Kitson Kelly
This also modifies the `ts_library_builder` to support inlining assets. Includes integration tests from @sh7dm
2019-02-02Add isTTY function (#1622)Dmitry Sharshakov
2019-02-02Compiler cleanups and minor improvements (#1656)Kitson Kelly
2019-02-02Support --fmtRyan Dahl
2019-02-02Better error message for bad filename CLI argument.Ryan Dahl
2019-02-02Add --info flag to display file info (compiled code/source map) (#1647)Kevin (Kun) "Kassimo" Qian
2019-01-30Refactor libdeno ES module interface. (#1624)Ryan Dahl
Allows for future asynchronous module loading. Add support for import.meta.url Fixes #1496
2019-01-30libdeno: improve exception handlingRyan Dahl
2019-01-28Split out compiler snapshot (#1566)Kitson Kelly
Speeds up startup time, reduces runtime heap size.
2019-01-28Add console.table (#1608)Sergey Golovin
2019-01-18Avoid crashes on ES module resolution when module not found (#1546)Kevin (Kun) "Kassimo" Qian
2019-01-17Fixed copyright of types outputJ2P
2019-01-14Fix JSON Modules (#1514)Kitson Kelly
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-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