diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/01_core.js | 2 | ||||
-rw-r--r-- | core/Cargo.toml | 2 | ||||
-rw-r--r-- | core/async_cell.rs | 2 | ||||
-rw-r--r-- | core/examples/eval_js_value.rs | 2 | ||||
-rw-r--r-- | core/inspector.rs | 6 | ||||
-rw-r--r-- | core/modules/map.rs | 2 | ||||
-rw-r--r-- | core/ops_builtin.rs | 2 | ||||
-rw-r--r-- | core/runtime/bindings.rs | 2 | ||||
-rw-r--r-- | core/runtime/jsrealm.rs | 2 | ||||
-rw-r--r-- | core/runtime/jsruntime.rs | 6 | ||||
-rw-r--r-- | core/runtime/tests.rs | 4 |
11 files changed, 16 insertions, 16 deletions
diff --git a/core/01_core.js b/core/01_core.js index d4a6508cb..674e772ae 100644 --- a/core/01_core.js +++ b/core/01_core.js @@ -221,7 +221,7 @@ error = errorMap[className]?.(message); } catch (e) { throw new Error( - `Unsable to build custom error for "${className}"\n ${e.message}`, + `Unable to build custom error for "${className}"\n ${e.message}`, ); } // Strip buildCustomError() calls from stack trace diff --git a/core/Cargo.toml b/core/Cargo.toml index 05da36f55..31f11ae3a 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -24,7 +24,7 @@ bytes.workspace = true deno_ops.workspace = true futures.workspace = true # Stay on 1.6 to avoid a dependency cycle in ahash https://github.com/tkaitchuck/aHash/issues/95 -# Projects not depending on ahash are unafected as cargo will pull any 1.X that is >= 1.6. +# Projects not depending on ahash are unaffected as cargo will pull any 1.X that is >= 1.6. indexmap = "1.6" libc.workspace = true log.workspace = true diff --git a/core/async_cell.rs b/core/async_cell.rs index 0f173ed17..97d70699d 100644 --- a/core/async_cell.rs +++ b/core/async_cell.rs @@ -390,7 +390,7 @@ mod internal { let turn = self.turn.get(); if id < turn { // We already made a borrow count reservation for this waiter but the - // borrow will never be picked up and removesequently, never dropped. + // borrow will never be picked up and consequently, never dropped. // Therefore, call the borrow drop handler here. self.drop_borrow::<M>(); } else { diff --git a/core/examples/eval_js_value.rs b/core/examples/eval_js_value.rs index 7b7af7c96..a752d7100 100644 --- a/core/examples/eval_js_value.rs +++ b/core/examples/eval_js_value.rs @@ -4,7 +4,7 @@ // NOTE: // Here we are deserializing to `serde_json::Value` but you can -// deserialize to any other type that implementes the `Deserialize` trait. +// deserialize to any other type that implements the `Deserialize` trait. use deno_core::v8; use deno_core::JsRuntime; diff --git a/core/inspector.rs b/core/inspector.rs index d7c84608f..bd1080a94 100644 --- a/core/inspector.rs +++ b/core/inspector.rs @@ -72,7 +72,7 @@ enum PollState { /// After creating this structure it's possible to connect multiple sessions /// to the inspector, in case of Deno it's either: a "websocket session" that /// provides integration with Chrome Devtools, or an "in-memory session" that -/// is used for REPL or converage collection. +/// is used for REPL or coverage collection. pub struct JsRuntimeInspector { v8_inspector_client: v8::inspector::V8InspectorClientBase, v8_inspector: Rc<RefCell<v8::UniquePtr<v8::inspector::V8Inspector>>>, @@ -143,7 +143,7 @@ impl v8::inspector::V8InspectorClientImpl for JsRuntimeInspector { impl JsRuntimeInspector { /// Currently Deno supports only a single context in `JsRuntime` - /// and thus it's id is provided as an associated contant. + /// and thus it's id is provided as an associated constant. const CONTEXT_GROUP_ID: i32 = 1; pub fn new( @@ -270,7 +270,7 @@ impl JsRuntimeInspector { mut invoker_cx: Option<&mut Context>, ) -> Result<Poll<()>, BorrowMutError> { // The futures this function uses do not have re-entrant poll() functions. - // However it is can happpen that poll_sessions() gets re-entered, e.g. + // However it is can happen that poll_sessions() gets re-entered, e.g. // when an interrupt request is honored while the inspector future is polled // by the task executor. We let the caller know by returning some error. let mut sessions = self.sessions.try_borrow_mut()?; diff --git a/core/modules/map.rs b/core/modules/map.rs index 837099d2f..786772e5b 100644 --- a/core/modules/map.rs +++ b/core/modules/map.rs @@ -73,7 +73,7 @@ pub(crate) struct ModuleMap { pub(crate) pending_dynamic_imports: FuturesUnordered<StreamFuture<RecursiveModuleLoad>>, - // This store is used temporarly, to forward parsed JSON + // This store is used temporarily, to forward parsed JSON // value from `new_json_module` to `json_module_evaluation_steps` json_value_store: HashMap<v8::Global<v8::Module>, v8::Global<v8::Value>>, } diff --git a/core/ops_builtin.rs b/core/ops_builtin.rs index 20afa210b..3728d132e 100644 --- a/core/ops_builtin.rs +++ b/core/ops_builtin.rs @@ -242,7 +242,7 @@ async fn op_read_all( let mut grow_len: usize = 64 * 1024; let (min, maybe_max) = resource.size_hint(); - // Try to determine an optimial starting buffer size for this resource based + // Try to determine an optimal starting buffer size for this resource based // on the size hint. let initial_size = match (min, maybe_max) { (min, Some(max)) if min == max => min as usize, diff --git a/core/runtime/bindings.rs b/core/runtime/bindings.rs index 2eb804e73..55911825f 100644 --- a/core/runtime/bindings.rs +++ b/core/runtime/bindings.rs @@ -369,7 +369,7 @@ fn empty_fn( //Do Nothing } -//It creates a reference to an empty function which can be mantained after the snapshots +//It creates a reference to an empty function which can be maintained after the snapshots pub fn create_empty_fn<'s>( scope: &mut v8::HandleScope<'s>, ) -> Option<v8::Local<'s, v8::Function>> { diff --git a/core/runtime/jsrealm.rs b/core/runtime/jsrealm.rs index 970b3f5d5..f41f2bbb2 100644 --- a/core/runtime/jsrealm.rs +++ b/core/runtime/jsrealm.rs @@ -200,7 +200,7 @@ impl JsRealmInner { // Expect that this context is dead (we only check this in debug mode) // TODO(mmastrac): This check fails for some tests, will need to fix this - // debug_assert_eq!(Rc::strong_count(&self.context), 1, "Realm was still alive when we wanted to destory it. Not dropped?"); + // debug_assert_eq!(Rc::strong_count(&self.context), 1, "Realm was still alive when we wanted to destroy it. Not dropped?"); } } diff --git a/core/runtime/jsruntime.rs b/core/runtime/jsruntime.rs index 2e473e7c9..7f9e2dcd8 100644 --- a/core/runtime/jsruntime.rs +++ b/core/runtime/jsruntime.rs @@ -401,7 +401,7 @@ pub struct RuntimeOptions { pub create_params: Option<v8::CreateParams>, /// V8 platform instance to use. Used when Deno initializes V8 - /// (which it only does once), otherwise it's silenty dropped. + /// (which it only does once), otherwise it's silently dropped. pub v8_platform: Option<v8::SharedRef<v8::Platform>>, /// The store to use for transferring SharedArrayBuffers between isolates. @@ -924,7 +924,7 @@ impl JsRuntime { // macroware wraps an opfn in all the middleware let macroware = move |d| middleware.iter().fold(d, |d, m| m(d)); - // Flatten ops, apply middlware & override disabled ops + // Flatten ops, apply middleware & override disabled ops let ops: Vec<_> = exts .iter_mut() .filter_map(|e| e.init_ops()) @@ -1771,7 +1771,7 @@ impl JsRuntime { let has_dispatched_exception = state_rc.borrow_mut().dispatched_exception.is_some(); if has_dispatched_exception { - // This will be overrided in `exception_to_err_result()`. + // This will be overridden in `exception_to_err_result()`. let exception = v8::undefined(tc_scope).into(); let pending_mod_evaluate = { let mut state = state_rc.borrow_mut(); diff --git a/core/runtime/tests.rs b/core/runtime/tests.rs index 88c62e280..dbfeecf3c 100644 --- a/core/runtime/tests.rs +++ b/core/runtime/tests.rs @@ -364,7 +364,7 @@ fn terminate_execution_webassembly() { let (mut runtime, _dispatch_count) = setup(Mode::Async); let v8_isolate_handle = runtime.v8_isolate().thread_safe_handle(); - // Run an infinite loop in Webassemby code, which should be terminated. + // Run an infinite loop in WebAssembly code, which should be terminated. let promise = runtime.execute_script_static("infinite_wasm_loop.js", r#" (async () => { @@ -1894,7 +1894,7 @@ fn test_op_unstable_disabling() { "test.js", r#" if (Deno.core.ops.op_foo() !== 42) { - throw new Error("Exptected op_foo() === 42"); + throw new Error("Expected op_foo() === 42"); } if (typeof Deno.core.ops.op_bar !== "undefined") { throw new Error("Expected op_bar to be disabled") |