summaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)Author
2019-08-29setTimeout's params should not be bigint (#2834)迷渡
2019-08-29add console.dirxml (#2835)Bartek Iwańczuk
2019-08-28Remove @stardazed/streamsRyan Dahl
This is a regression on several some features in the fetch API. To bring these back @stardazed/streams simply needs to be ported to TS and included in the //js directory. Towards #2608
2019-08-28Internalize base64-js, convert to TypeScriptRyan Dahl
2019-08-27feat: implement Addr interface (#2821)Bartek Iwańczuk
2019-08-27Improve error stacks for async ops (#2820)Nayeem Rahman
2019-08-26Clean up various flatbuffer references (#2819)Ryan Dahl
2019-08-26Remove flatbuffers (#2818)Ryan Dahl
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-26port fs ops to JSON (#2812)Bartek Iwańczuk
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 more ops to JSON (#2809)Bartek Iwańczuk
2019-08-24port ops to JSON: compiler, errors, fetch, files (#2804)Bartek Iwańczuk
2019-08-24Port rest of os ops to JSON (#2802)Ryan Dahl
2019-08-22introduce JSON serialization for ops (#2799)Ryan Dahl
Converts env(), exit(), execPath(), utime() and utimeSync() to use JSON instead of flatbuffers.
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-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)迷渡