summaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)Author
2018-09-09Expose deno.ErrorKindRyan Dahl
Originally we planned to have a JS class for each error code. But it seems better to just have a single DenoError class with a "kind" property. One nice thing about using an enum instead of classes for errors is that switch() can be used during error handling instead of a bunch of instanceof branches.
2018-09-09Remove namespace from src/msg.fbsRyan Dahl
2018-09-09Map promises onto futures.Ryan Dahl
Refactors handlers.rs The idea is that all Deno "ops" (aka bindings) should map onto a Rust Future. By setting the "sync" flag in the Base message users can determine if the future is executed immediately or put on the event loop. In the case of async futures, a promise is automatically created. Errors are automatically forwarded and raised. TODO: - The file system ops in src/handler.rs are not using the thread pool yet. This will be done in the future using tokio_threadpool::blocking. That is, if you try to call them asynchronously, you will get a promise and it will act asynchronous, but currently it will be blocking. - Handlers in src/handler.rs returned boxed futures. This was to make it easy while developing. We should try to remove this allocation.
2018-09-09Add better assert message for CodeFetchResRyan Dahl
2018-09-09Add type aliases for sourceCode and outputCodeDaniel Ramos
2018-09-07Add and edit commentsJ2P
2018-09-06Cleanup public API of DenoCompilerKitson Kelly
2018-09-06Integrate format diagnostic host in DenoCompilerKitson Kelly
2018-09-06Check allow-net in fetchParsa Ghadimi
2018-09-06Fix TypeScript exports in bundleKitson Kelly
2018-09-06Implementing --deps flagMirko Jotic
- Adding a ModuleId type alias to specify original url or local file of dependency - Modifying ModuleMetaData class to contain ModuleId - Adding a --deps flag
2018-09-05FormatRyan Dahl
2018-09-05Mark APIs at internal and include JSDoc in typesKitson Kelly
2018-09-04lStat -> lstatRyan Dahl
2018-09-04Implement renameSyncMani Maghsoudlou
2018-09-03Implement mkdirSyncSajjad Hashemian
2018-09-03Format.Ryan Dahl
2018-09-02Unit tests for circular referencesKitson Kelly
2018-09-02Fix circular dependenciesKitson Kelly
2018-09-01Minor code refactoringShinDarth
2018-09-01Refactor code to be same styleliuyi
2018-09-01Remove lib.globals.d.tsKitson Kelly
2018-09-01Bundle most types into globals.d.ts (#642)Kitson Kelly
2018-08-31Document lStatSync & statSync and correct FileInfo.Aaron Power
2018-08-31Implemented deno.env and refactored flags.rsAaron Power
2018-08-31Refactor libdeno.send() code to reduce boilerplate.Ryan Dahl
Also removes assignCmdId as it's currently unused.
2018-08-30formatRyan Dahl
2018-08-30Reorganize js/unit_tests.tsRyan Dahl
2018-08-30Implemented statSync and lStatSyncAaron Power
2018-08-30add type declarationztplz
2018-08-29Implement makeTempDirSync()Bert Belder
2018-08-29Allow filtering of unit tests.Ryan Dahl
2018-08-28Updates to compiler.ts comments and logging.Kitson Kelly
2018-08-28Two-pass module evaluation.Kitson Kelly
Plus changes to tests to accomodate.
2018-08-28formatBert Belder
2018-08-27Add ability to unit test by permissions.Ryan Dahl
2018-08-27Add deno.argv.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
2018-08-26refactor: add and use libdeno.setGlobalErrorHandler instead of window.onerrorYoshiya Hinosawa
2018-08-25Prevent circular imports in ts code (#576)Francesco Borzì
2018-08-24Integrate ScriptSnapshot into ModuleMetaDataKitson Kelly
2018-08-23Improve DenoCompiler.makeDefine and localRequireKitson Kelly
2018-08-23fmtRyan Dahl
2018-08-22Implement writeFileSyncRyan Dahl
In collaboration with Tommy Savaria <tommy.savaria@protonmail.ch>
2018-08-22runtime.ts refactor into compiler.ts (#564)Ryan Dahl
Adds compiler_test.ts
2018-08-21Expose deno.exit() and add test.Ryan Dahl
2018-08-21Better error handling in src/handlers.rsRyan Dahl
Introduces error codes that are shared between JS/RS Fixes #526.
2018-08-20Fix TS errors in fetch.tsRyan Dahl
2018-08-20First pass at fetch()Ryan Dahl
With help from Thomas Ghysels <info@thomasg.be>