summaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)Author
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-19Support custom inspection of objects (#2791)Kitson Kelly
2019-08-17Implement console.trace() (#2780)Kevin (Kun) "Kassimo" Qian
groupCollapsed alias to group, remove noTrailingNewline, move newline out of stringifyArgs, fix console.dir, add tests, and fix a repl log quirk. For repl logging quirks, I believe we should not indent repl logging. If we really want such indentation, we probably also want to indent "> " prompts.
2019-08-16fix: set response.url (#2782)Yoshiya Hinosawa
2019-08-16Revert "Remove dead code: legacy read/write ops"Ryan Dahl
This is causing a segfault for unknown reasons - see #2787. This reverts commit 498f6ad431478f655b136782093e19e29248b24d.
2019-08-14Remove dead code: legacy read/write ops (#2776)Ryan Dahl
readSync and writeSync use dispatch_minimal now.
2019-08-13Fix permission requirements for Deno.rename() and Deno.link() (#2737)Nayeem Rahman
2019-08-07Add op_id throughout op API (#2734)Ryan Dahl
Removes the magic number hack to switch between flatbuffers and the minimal dispatcher. Adds machinery to pass the op_id through the shared_queue.
2019-08-06Fix small execPath issues (#2744)Kevin (Kun) "Kassimo" Qian
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-06Enforce permissions on kill(), homeDir() and execPath (#2723)Nayeem Rahman
2019-08-05Remove Deno.build.args feature (#2728)Ryan Dahl
This is a minor feature which complicates the build signifigantly. Removing to ease refactoring the build system: https://github.com/denoland/deno/issues/2608
2019-08-05Provide option to delete Deno namespace in worker (#2717)Kevin (Kun) "Kassimo" Qian
2019-08-03Enforce env permission on homeDir() and execPath (#2714)Kevin (Kun) "Kassimo" Qian
2019-08-01Implement function convertLineEndingsToNative in blob.ts (#2695)Tomohito Nakayama
based on https://w3c.github.io/FileAPI/#convert-line-endings-to-native
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-31Makes shebang Linux compatible (#2694)Nayeem Rahman
2019-07-29Remap stack traces of unthrown errors. (#2693)Kitson Kelly
2019-07-23feat: expose writeAll() and writeAllSync() (#2298)Kevin (Kun) "Kassimo" Qian
Symmetric with `readAll()` and `readAllSync()`. Also used in `xeval`. Also correct usage in `writeFile()`/`writeFileSync()`.
2019-07-18fix timer's params length (#2655)迷渡
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-17Adjust console constructor (#2649)迷渡
https://github.com/denoland/deno/pull/2073#discussion_r303401539
2019-07-16Support window.onload (#2643)Yoshiya Hinosawa
2019-07-06io: change Reader interface (#2591)Yoshiya Hinosawa
Instead of returning { nread: number, eof: bool }, read() returns EOF | number.
2019-06-25Add homeDir to Deno namespace (#2578)Evgeniy Karagodin
2019-06-24Upgrade deno_std (#2565)Ryan Dahl
2019-06-24feat: fetch() now handles redirects (#2561)Long(Tony) Lian
2019-06-22fetch: make body async iterable (#2563)Yoshiya Hinosawa
2019-06-21feat: redirect process stdio to file (#2554)Bartek Iwańczuk
2019-06-21add encodeInto to TextEncoder (#2558)andy finch
2019-06-20event `isTrusted` is enumerable (#2543)迷渡
2019-06-18fix clearTimeout.name / clearInterval.name (#2540)迷渡
2019-06-17refactor dispatch take 2 (#2533)andy finch
2019-06-17clearTimeout should convert to number (#2539)迷渡
2019-06-17fix urlSearchParams custom symbol iterator (#2537)迷渡
2019-06-14Revert "Refactor dispatch handling (#2452)"Ryan Dahl
Due to performance regression: https://github.com/denoland/deno/commit/dc60fe9f300043f191286ef804a365e16e455f87#commitcomment-33943711 This reverts commit dc60fe9f300043f191286ef804a365e16e455f87.
2019-06-14feat: URLSearchParams should work with custom iterator (#2512)迷渡
2019-06-13Refactor dispatch handling (#2452)andy finch
Promise id is now created in core and passed back to JS.
2019-06-13expose window.Response (#2515)Bartek Iwańczuk
2019-06-13forbidden to set `this` for setTimeout (#2511)迷渡
2019-06-11makes global request type an interface (#2503)Kurt Mackey
2019-06-11feat: default output filename for deno bundle (#2484)Ryan Dahl
And improve bundle docs
2019-06-11set setTimeout callback's this to window objectjustjavac
2019-06-10fix bug in URL (#2495)迷渡
2019-06-10check `URLSearchParams.constructor`'s params (#2488)迷渡
2019-06-08Add asserts checking that async ops return null (#2463)Ryan Dahl
2019-06-08Add 'bundle' subcommand. (#2467)Kitson Kelly
2019-06-04Handle compiler diagnostics in Rust (#2445)Kitson Kelly
2019-06-03Compiler exit before emit if preEmitDiagnostics found (#2441)Ryan Dahl