diff options
author | Linus Groh <mail@linusgroh.de> | 2022-02-08 18:17:12 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-02-08 18:17:12 +0000 |
commit | fd0f1d0c1ad016d216f9f64e9da32622a37d2bc2 (patch) | |
tree | d6505d9d219d7d36805d55c9c894a9f580aa781c | |
parent | 17aeb99e9e92bd8bb47e9680385d9325f3321109 (diff) | |
download | serenity-fd0f1d0c1ad016d216f9f64e9da32622a37d2bc2.zip |
LibJS: Fix two typos in comments
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Error.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/FinalizationRegistryPrototype.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Error.cpp b/Userland/Libraries/LibJS/Runtime/Error.cpp index 23a471c370..919b2ba34d 100644 --- a/Userland/Libraries/LibJS/Runtime/Error.cpp +++ b/Userland/Libraries/LibJS/Runtime/Error.cpp @@ -76,7 +76,7 @@ String Error::stack_string() const StringBuilder stack_string_builder; // Note: We roughly follow V8's formatting // Note: The error's name and message get prepended by ErrorPrototype::stack - // Note: We don't want to capture the global exectution context, so we omit the last frame + // Note: We don't want to capture the global execution context, so we omit the last frame // FIXME: We generate a stack-frame for the Errors constructor, other engines do not for (size_t i = 0; i < m_traceback.size() - 1; ++i) { auto const& frame = m_traceback[i]; diff --git a/Userland/Libraries/LibJS/Runtime/FinalizationRegistryPrototype.cpp b/Userland/Libraries/LibJS/Runtime/FinalizationRegistryPrototype.cpp index f617ff67cb..61deb5c7e6 100644 --- a/Userland/Libraries/LibJS/Runtime/FinalizationRegistryPrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/FinalizationRegistryPrototype.cpp @@ -41,7 +41,7 @@ JS_DEFINE_NATIVE_FUNCTION(FinalizationRegistryPrototype::cleanup_some) if (vm.argument_count() > 0 && !callback.is_function()) return vm.throw_completion<TypeError>(global_object, ErrorType::NotAFunction, callback.to_string_without_side_effects()); - // IMPLEMENTATION DEFINED: The specification for this function hasn't been updated to accomodate for JobCallback records. + // IMPLEMENTATION DEFINED: The specification for this function hasn't been updated to accommodate for JobCallback records. // This just follows how the constructor immediately converts the callback to a JobCallback using HostMakeJobCallback. TRY(finalization_registry->cleanup(callback.is_undefined() ? Optional<JobCallback> {} : vm.host_make_job_callback(callback.as_function()))); |