summaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/bindings.rs2
-rw-r--r--core/runtime/jsrealm.rs2
-rw-r--r--core/runtime/jsruntime.rs6
-rw-r--r--core/runtime/tests.rs4
4 files changed, 7 insertions, 7 deletions
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")