summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2020-10-11reland JsRuntime/Worker is not a Future (#7924)Bartek Iwańczuk
2020-10-10v1.4.6Bartek Iwańczuk
2020-10-10Fix 100% CPU idling problem by reverting #7672 (#7911)Ryan Dahl
* Revert "refactor: Worker is not a Future (#7895)" This reverts commit f4357f0ff9d39411f22504fcc20db6bd5dec6ddb. * Revert "refactor(core): JsRuntime is not a Future (#7855)" This reverts commit d8879feb8c832dbb38649551b1cb0730874f7be6. * Revert "fix(core): module execution with top level await (#7672)" This reverts commit c7c767782538243ded64742dca9b34d6af74d62d.
2020-10-09Implement Serialize for ModuleSpecifier (#7900)Ryan Dahl
Also re-export serde from deno_core, since its now a dependency.
2020-10-08Fix typos (#7882)crowlKats
2020-10-08v1.4.5Bartek Iwańczuk
2020-10-08fix(cli/rt/error_stack): Improve message line formatting (#7860)Nayeem Rahman
2020-10-07refactor(core): JsRuntime is not a Future (#7855)Bartek Iwańczuk
This commit rewrites deno_core::JsRuntime to not implement Future trait. Instead there are two separate methods: - JsRuntime::poll_event_loop() - does single tick of event loop - JsRuntime::run_event_loop() - runs event loop to completion
2020-10-07upgrade: rusty_v8 0.11.0, V8 8.7.220.3 (#7859)Bartek Iwańczuk
2020-10-07refactor: rename isolate to js_runtime (#7858)Bartek Iwańczuk
This commit renames occurrences of "isolate" variable name to "js_runtime". This was outstanding debt after renaming deno_core::CoreIsolate to JsRuntime.
2020-10-07refactor(core): JsRuntime doesn't defer to OwnedIsolate (#7853)Bartek Iwańczuk
Remove Deref and DeferMut implementations for JsRuntime.
2020-10-06fix(core): module execution with top level await (#7672)Bartek Iwańczuk
This commit fixes implementation of top level await in "deno_core". Previously promise returned from module execution was ignored causing to execute modules out-of-order. With this commit promise returned from module execution is stored on "JsRuntime" and event loop is polled until the promise resolves.
2020-10-05fix(core): handle unregistered errors in core better (#7817)Kitson Kelly
2020-10-05refactor(core): JsRuntime::poll (#7825)Bartek Iwańczuk
This commit does reorganization of "JsRuntime::poll" to allow fixing of top-level-await bug.
2020-10-03v1.4.4Bartek Iwańczuk
2020-10-02v1.4.3Bartek Iwańczuk
2020-10-02fix(cli/repl): use a default referrer when empty (#7794)Casper Beyer
This makes use of a default referrer when its empty in repl mode so that dynamic imports work in the global evaluation context. Co-authored-by: Bartek Iwanczuk <biwanczuk@gmail.com>
2020-10-02chore(core): remove experimental wasm bigint flag (#7790)Casper Beyer
This removes the experimental bigint flag as it is enabled by default now and is no longer necessary.
2020-09-25v1.4.2Bartek Iwańczuk
2020-09-23Add example for deno_core (#7611)Valentin Anger
2020-09-22Actually remove js_check (#7636)Ryan Dahl
2020-09-22refactor(core): support error stack, remove js_check (#7629)Bartek Iwańczuk
This commit adds support for stack traces in "deno_core". Implementation of "Display" trait for "JsError" has been updated and in consequence "deno_core::js_check" became obsolete and removed.
2020-09-22refactor(cli/fmt_errors): Color stack traces in Rust (#7628)Nayeem Rahman
2020-09-21chore: add copyright (#7593)tokiedokie
2020-09-20refactor: remove CliState, use OpState, add CliModuleLoader (#7588)Bartek Iwańczuk
- remove "CliState.workers" and "CliState.next_worker_id", instead store them on "OpState" using type aliases. - remove "CliState.global_timer" and "CliState.start_time", instead store them on "OpState" using type aliases. - remove "CliState.is_internal", instead pass it to Worker::new - move "CliState::permissions" to "OpState" - move "CliState::main_module" to "OpState" - move "CliState::global_state" to "OpState" - move "CliState::check_unstable()" to "GlobalState" - change "cli_state()" to "global_state()" - change "deno_core::ModuleLoader" trait to pass "OpState" to callbacks - rename "CliState" to "CliModuleLoader"
2020-09-18v1.4.1Bert Belder
2020-09-17refactor: move op_resources and op_close to deno_core (#7539)Bartek Iwańczuk
Moves op_close and op_resources to deno_core::ops and exports them. Adds serde dependency to deno_core and reexports it. Moves JS implementation of those ops to Deno.core and reexports them in Deno.
2020-09-16refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521)Bartek Iwańczuk
Instead use Deno.core.jsonOpSync and Deno.core.jsonOpAsync
2020-09-16Re-export deno_core::url (#7525)Ryan Dahl
Also re-exports deno_core::futures and deno_core::serde_json but these are not yet used in the CLI.
2020-09-15Don't expose ErrWithV8Handle from deno_coreRyan Dahl
2020-09-14Make JsRuntimeState private (#7484)Ryan Dahl
2020-09-14refactor: Remove dependency on downcast_rs. (#7475)Scott Olson
We don't seem to use downcast_rs in any essential way. We can just use the standard library `Any` directly.
2020-09-14refactor(core): remove JsRuntime::set_js_error_create_fn (#7478)Bartek Iwańczuk
Instead use RuntimeOptions.js_error_create_fn
2020-09-15refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)Bert Belder
2020-09-14Upgrade Rust crates, pin 'webpki-roots' to version 0.19.0 (#7454)Bert Belder
2020-09-13v1.4.0Bartek Iwańczuk
2020-09-13upgrade: rusty_v8 0.10.0 / V8 8.7.75 (#7429)Bert Belder
2020-09-11refactor(core): JsRuntime initialization (#7415)Bartek Iwańczuk
Removes: - "deno_core::StartupData" - "deno_core::Script" - "deno_core::OwnedScript" Changes to "JsRuntime": - remove "new_with_loader()" - remove "with_heap_limits()" - rename "IsolateOptions" to "RuntimeOptions" and make public - "JsRuntime::new()" takes "RuntimeOptions" as a single param
2020-09-10Use gotham-like state for ops (#7385)Ryan Dahl
Provides a concrete state type that can be dynamically added. This is necessary for op crates. * renames BasicState to OpState * async ops take `Rc<RefCell<OpState>>` * sync ops take `&mut OpState` * removes `OpRegistry`, `OpRouter` traits * `get_error_class_fn` moved to OpState * ResourceTable moved to OpState
2020-09-09fix(core): panic on big string allocation (#7395)Bartek Iwańczuk
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-09-08feat(console): print proxy details (#7139)uki00a
2020-09-07feat(info): Dependency count and sizes (#6786)KrisChambers
This commit changes "deno info" subcommand logic. - Modules are no longer loaded into V8 isolate - analysis is done using ModuleGraph. - Removed deno_core::Deps structure. - Modules are no longer type-checked and transpiled - "compiled" file is shown only if it is already available. - Added number of unique dependencies for root module. - Changed tree output: - file size is shown next to the dependency - repeated dependencies are marked with "*" - used less spaces in prefix to save terminal width
2020-09-06refactor(core): rename CoreIsolate to JsRuntime (#7373)Bartek Iwańczuk
deno_core/ - rename core_isolate.rs to runtime.rs - rename CoreIsolate to JsRuntime - rename JSError to JsError - rename JSStackFrame to JsStackFrame cli/ - update references from deno_core::CoreIsolate to deno_core::JsRuntime - rename deno_core::JSError to deno_core::JsError - rename fmt_errors::JSError to fmt_errors::JsError
2020-09-06refactor(core): merge CoreIsolate and EsIsolate (#7370)Bartek Iwańczuk
2020-09-06Move JSON ops to deno_core (#7336)Bert Belder
2020-09-04v1.3.3Bartek Iwańczuk
2020-09-01Remove unused crate_modules feature (#7311)Ryan Dahl
2020-08-29v1.3.2Bartek Iwańczuk
2020-08-29upgrade: rusty_v8 0.9.1 / V8 8.6.334 (#7243)Bartek Iwańczuk
2020-08-26Simplify ErrBox-to-class mapping & hook it up to core json ops (#7195)Bert Belder