summaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)Author
2018-08-19add notImplemented and unreachable util functions (#540)Bartek IwaƄczuk
2018-08-19chore: move libdeno files to //libdeno/Yoshiya Hinosawa
2018-08-17Command line flag parsing (#524)Ryan Dahl
In particular this allow -D for logging debug output.
2018-08-17chore: format files in tests/Yoshiya Hinosawa
2018-08-16Implement deno_handle_msg_from_js in RustRyan Dahl
Fixes #419, #414.
2018-08-15Use typescript strict mode (#505)Kitson Kelly
2018-08-13Use `@internal` with js/timers.tsKitson Kelly
2018-08-11Rename mock_runtime_test to libdeno_testRyan Dahl
Fixes #465
2018-08-11Use unit_tests for readFileSync testing.Ryan Dahl
2018-08-10Only emit declarations for generated files (#502)Kitson Kelly
and remove declarationMap flag from generated tsconfig
2018-08-09Adds js/unit_tests.ts (#448)Ryan Dahl
2018-08-09Add readFileSyncRyan Dahl
2018-08-09Add TextEncoder/TextDecoder support.Ryan Dahl
Fixes #470 This commit increases size: out/release/gen/bundle/main.js 7.3M -> 7.9M out/release/gen/bundle/main.js.map 11M -> 12M out/release/gen/snapshot_deno.bin 34M -> 37M out/release/deno 49M -> 53M Note the amount in the JS code added is quite small: 4.0K node_modules/text-encoding/index.js 4.0K node_modules/@types/text-encoding/index.d.ts 4.0K js/text_encoding.ts Unclear to me what is causing the jump in snapshot size.
2018-08-09First pass at setTimeout with Tokio (#434)Ryan Dahl
2018-08-08Organize libdeno functions.Ryan Dahl
2018-08-08Better error for 'No such asset'Ryan Dahl
2018-08-08Generate declarationsKitson Kelly
2018-08-08Create ASSETS const in runtime.tsKitson Kelly
2018-08-08Rename lib.deno.d.ts to lib.globals.d.tsKitson Kelly
2018-08-03Implement os.exitRyan Dahl
2018-08-02Source map support (#429)Ryan Dahl
This change increases size: out/debug/obj/libdeno/from_snapshot.o 19M -> 34M out/release/deno 32M -> 47M
2018-08-02Remove dispatch.ts and move assignCmdId to util.tsRyan Dahl
2018-08-01Better handling of exceptions during snapshot creation.Ryan Dahl
2018-07-31Upgrade TypeScript (3.0.1)Kitson Kelly
Update runtime to use lib.deno.d.ts Add proper console declaration Upgrade prettier (There was an issue formatting lib.deno.d.ts)
2018-07-29Implement CodeCacheRyan Dahl
2018-07-25Remove msg_generated hack (#409)Kitson Kelly
2018-07-24Remove handlers crate target.Ryan Dahl
- Add build scripts for Rust flatbuffers. - Rewrites some reply.cc methods in Rust. - Changes some struct elements to table in msg.fbs (rust flatbuffers lacks support currently) - Renames handlers_test to test_rs. - This reorg is needed to make progress on the code cache handler.
2018-07-24Allow deno_buf with null alloc_ptr to be memcpy'dRyan Dahl
This is a temporary hack to allow for easier restructuring of the serialization code as we move Flatbuffer stuff from C++ to Rust.
2018-07-24Add mock_runtime_test for deno_last_exception.Ryan Dahl
2018-07-24Change copyrights to be 'Deno authors'.Ryan Dahl
2018-07-22Replace packer with rollupKitson Kelly
2018-07-18Better exception output.Ryan Dahl
2018-07-18Execute JS for the first time in Rust rewrite.Ryan Dahl
Implements code_fetch handler in Rust. Add ability to embed string assets (for typescript declaration files) Remove deno_cc and deno_cc_nosnapshot targets.
2018-07-12Move buffers between V8 and nativeBert Belder
* send()/recv() now operate on TypedArrays rather than ArrayBuffers. * Remove a copy (through ArrayBuffer.slice()) from the send path. * Remove a copy (through v8::ArrayBuffer::New()) from the return path. * After moving a buffer from JS to native, the ArrayBuffer object and it's views are made inaccessible ('neutered'). * `struct deno_buf` now holds two [ptr, length] tuples, one for the actual memory allocation, and one for the logical data contained therein. This is necessary because flatbuffers fills it's buffer bottom-up, so the serialized blob doesn't start at beginning of the buffer, but somewhere in the middle.
2018-07-09chore: use local prettierYoshiya Hinosawa
2018-07-09Regenerate msg_generated.tsBert Belder
I forgot to commit this file in 8a17db8.
2018-07-08Add 'command id' field to messagesBert Belder
This allows for correlating response messages to the command message that caused them.
2018-07-08Clean up tools/Ryan Dahl
- Factor out tools/util.py - Move js/*.py to tools. - Rewrite tools/format.sh in python. - Run lint first in travis.
2018-07-06Remove channel parameter from deno_send/recv.Ryan Dahl
2018-07-06Use C++ to do flatbuffer parsing.Ryan Dahl
- Port protobuf messages to flatbuffers. - Demo linking to rust from C++ executable. - Start using the prototype TS libraries.
2018-07-06Import ts file from prototype without changeRyan Dahl
From commit 559453cf6cc88283bcf8fdeccd387458f5c63165 Excluding v8worker.d.ts, main.ts, and deno.d.ts. Updates tslint.json to be original settings.
2018-07-06chore: reorganize symlinksYoshiya Hinosawa
resolves #332
2018-07-04Replace protobufs with flatbuffersRyan Dahl
2018-07-04Add tools/build_third_party.py (#328)Yoshiya Hinosawa
Fixes #312
2018-07-03Switch back to recv/send instead of pub/sub for low-level API.Ryan Dahl
2018-07-03Remove BaseMsg from msg.protoRyan Dahl
2018-07-01Add tslintParsa Ghadimi
2018-07-01chore: move //src/js to //jsYoshiya Hinosawa
refs: #285