summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2019-09-10feat: Make integration tests rust unit tests (#2884)Bartek Iwańczuk
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2019-09-10fix: replace bad rid panics with errors (#2870)Bartek Iwańczuk
2019-09-07Update @typescript-eslint/* to v2.1.0 (#2878)Yoshiya Hinosawa
2019-09-04Fix xeval chunk incorrect matching behavior (#2857)Kevin (Kun) "Kassimo" Qian
2019-09-02Refactor snapshot build (#2825)Ryan Dahl
Instead of using core/snapshot_creator.rs, instead two crates are introduced which allow building the snapshot during build.rs. Rollup is removed and replaced with our own bundler. This removes the Node build dependency. Modules in //js now use Deno-style imports with file extensions, rather than Node style extensionless imports. This improves incremental build time when changes are made to //js files by about 40 seconds.
2019-08-30Remove ts_library_builder, maintain lib.deno_runtime.d.ts by hand (#2827)Ryan Dahl
2019-08-27Improve error stacks for async ops (#2820)Nayeem Rahman
2019-08-26Port readSync/writeSync ops to minimalRyan Dahl
This removes dispatch_flatbuffers as it is now unused. There are still a few places where msg_generated is used: ErrorKind and MediaType. These will be dealt with later.
2019-08-26bring back json ops (#2815)Bartek Iwańczuk
2019-08-24Revert json ops (#2814)Ryan Dahl
* Revert "port more ops to JSON (#2809)" This reverts commit 137f33733d365026903d40e7cde6e34ac6c36dcf. * Revert "port ops to JSON: compiler, errors, fetch, files (#2804)" This reverts commit 79f82cf10ed1dbf91346994250d7311a4d74377a. * Revert "Port rest of os ops to JSON (#2802)" This reverts commit 5b2baa5c990fbeae747e952c5dcd7a5369e950b1.
2019-08-24port ops to JSON: compiler, errors, fetch, files (#2804)Bartek Iwańczuk
2019-08-22Support .d.ts files (#2746)Kitson Kelly
Fixes #1432
2019-08-21Organize dispatch a bit (#2796)Ryan Dahl
Just some clean up reorganization around flatbuffer/minimal dispatch code. This is prep for adding a JSON dispatcher.
2019-08-13Dynamic import should respect permissions (#2764)Ryan Dahl
2019-08-11feat: print cache location when no arg in deno info (#2752)Bartek Iwańczuk
2019-08-09Fix dynamic import base path problem for REPL and eval (#2757)Kevin (Kun) "Kassimo" Qian
2019-08-09Dynamic import (#2516)Bert Belder
2019-08-08Resolve worker specifiers relative to main module of host. (#2751)andy finch
2019-08-06Make Deno.execPath a function (#2743)Kevin (Kun) "Kassimo" Qian
And throws without allow-env
2019-08-06Implement Blob url support for worker (#2729)Kevin (Kun) "Kassimo" Qian
2019-08-05Provide option to delete Deno namespace in worker (#2717)Kevin (Kun) "Kassimo" Qian
2019-07-31refactor: cleanup compiler pipeline (#2686)Bartek Iwańczuk
* remove fetch_source_file_and_maybe_compile_async and replace it with State.fetch_compiled_module * remove SourceFile.js_source() * introduce CompiledModule which is basically the same as deno::SourceInfo and represents arbitrary file that has been compiled to JS module * introduce //cli/compilers module containing all compilers * introduce JsCompiler which is a no-op compiler - output is the same as input, no compilation takes place - it is used for MediaType::JavaScript and MediaType::Unknown * introduce JsonCompiler that wraps JSON in default export * support JS-to-JS compilation using checkJs
2019-07-31Add --current-thread flag (#2702)Bartek Iwańczuk
2019-07-30feat: add debug info to ModuleResolutionError (#2697)Bartek Iwańczuk
2019-07-29Remap stack traces of unthrown errors. (#2693)Kitson Kelly
2019-07-27make importmap flag global (#2687)Bartek Iwańczuk
2019-07-27cli: handle deno -v and deno --version (#2684)Bartek Iwańczuk
2019-07-20fix: bring back --no-fetch flag (#2671)Bartek Iwańczuk
2019-07-18Remove hacky normalize_path (#2660)Ryan Dahl
2019-07-17Refactor DenoDir (#2636)Bartek Iwańczuk
* rename `ModuleMetaData` to `SourceFile` and remove TS specific functionality * add `TsCompiler` struct encapsulating processing of TypeScript files * move `SourceMapGetter` trait implementation to `//cli/compiler.rs` * add low-level `DiskCache` API for general purpose caches and use it in `DenoDir` and `TsCompiler` for filesystem access * don't use hash-like filenames for compiled modules, instead use metadata file for storing compilation hash * add `SourceFileCache` for in-process caching of loaded files for fast subsequent access * define `SourceFileFetcher` trait encapsulating loading of local and remote files and implement it for `DenoDir` * define `use_cache` and `no_fetch` flags on `DenoDir` instead of using in fetch methods
2019-07-16Support window.onload (#2643)Yoshiya Hinosawa
2019-07-08cli: refactor deno_dir to use Url instead of StringBartek Iwańczuk
2019-07-08core: clearly define when module lookup is path-based vs URL-basedBert Belder
The rules are now as follows: * In `import` statements, as mandated by the WHATWG specification, the import specifier is always treated as a URL. If it is a relative URL, it must start with either / or ./ or ../ * A script name passed to deno as a command line argument may be either an absolute URL or a local path. - If the name starts with a valid URI scheme followed by a colon, e.g. 'http:', 'https:', 'file:', 'foo+bar:', it always interpreted as a URL (even if Deno doesn't support the indicated protocol). - Otherwise, the script name is interpreted as a local path. The local path may be relative, and operating system semantics determine how it is resolved. Prefixing a relative path with ./ is not required.
2019-06-30core: return useful error when import path has no prefix like ./Bert Belder
2019-06-27Fix multiple error messages for a missing file (#2587)Gurwinder Singh
2019-06-24refactor: use Path/PathBuf in deno dir (#2559)Bartek Iwańczuk
2019-06-20Fix silent failure of WebAssembly.instantiate() (#2548)Ryan Dahl
By making WASM compilation synchronous. We'll have to do more work to make it properly async.
2019-06-19Combine CLI Errors (#2487)Kitson Kelly
2019-06-18fix: use Loader::resolve in op_fetch_module_meta_data (#2519)Bartek Iwańczuk
2019-06-11Add --seed for setting RNG seed (#2483)Matt Harrison
2019-06-09feat: Import maps (#2360)Bartek Iwańczuk
2019-06-04Handle compiler diagnostics in Rust (#2445)Kitson Kelly
2019-06-03Compiler exit before emit if preEmitDiagnostics found (#2441)Ryan Dahl
2019-05-29TS compiler refactorRyan Dahl
* Compiler no longer has its own Tokio runtime. Compiler handles one message and then exits. * Uses the simpler ts.CompilerHost interface instead of ts.LanguageServiceHost. * avoids recompiling the same module by introducing a hacky but simple `hashset<string>` that stores the module names that have been already compiled. * Removes the CompilerConfig op. * Removes a lot of the mocking stuff in compiler.ts like `this._ts`. It is not useful as we don't even have tests. * Turns off checkJs because it causes fmt_test to die with OOM.
2019-05-23Rename --allow-high-precision to --allow-hrtime (#2398)Ryan Dahl
2019-05-14Rename HTTP benchmarks (#2350)Ryan Dahl
2019-05-11Add progress bar (#2309)Ryan Dahl
2019-05-03fix: deno version panic (#2286)Bartek Iwańczuk
2019-05-03add "deno run" subcommand (#2215)Bartek Iwańczuk
2019-05-03feat(cli cmd): deno xeval (#2260)Kevin (Kun) "Kassimo" Qian