mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 05:07:35 +00:00
Everywhere: Fix typos - act III
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
This commit is contained in:
parent
51b4b4a270
commit
19f88f96dc
Notes:
github-actions[bot]
2025-06-16 13:21:54 +00:00
Author: https://github.com/szepeviktor
Commit: 19f88f96dc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4300
Reviewed-by: https://github.com/AtkinsSJ ✅
12 changed files with 16 additions and 16 deletions
|
@ -328,7 +328,7 @@ public:
|
|||
}
|
||||
|
||||
if (m_type == ScopeType::Function && m_bound_names.contains(identifier_group_name)) {
|
||||
// NOTE: Currently parser can't determine that named function expression assigment creates scope with binding for funciton name so function names are not considered as candidates to be optmized in global variables access
|
||||
// NOTE: Currently parser can't determine that named function expression assignment creates scope with binding for function name so function names are not considered as candidates to be optimized in global variables access
|
||||
identifier_group.might_be_variable_in_lexical_scope_in_named_function_assignment = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ ThrowCompletionOr<Value> await(VM& vm, Value value)
|
|||
promise->perform_then(on_fulfilled, on_rejected, {});
|
||||
|
||||
// FIXME: Since we don't support context suspension, we attempt to "wait" for the promise to resolve
|
||||
// by syncronously running all queued promise jobs.
|
||||
// by synchronously running all queued promise jobs.
|
||||
if (auto* agent = vm.agent()) {
|
||||
// Embedder case (i.e. LibWeb). Runs all promise jobs by performing a microtask checkpoint.
|
||||
agent->spin_event_loop_until(GC::create_function(vm.heap(), [success] {
|
||||
|
|
|
@ -385,7 +385,7 @@ static i64 clip_double_to_sane_time(double value)
|
|||
static constexpr auto min_double = static_cast<double>(NumericLimits<i64>::min());
|
||||
static constexpr auto max_double = static_cast<double>(NumericLimits<i64>::max());
|
||||
|
||||
// The provided epoch millseconds value is potentially out of range for AK::Duration and subsequently
|
||||
// The provided epoch milliseconds value is potentially out of range for AK::Duration and subsequently
|
||||
// get_time_zone_offset(). We can safely assume that the TZDB has no useful information that far
|
||||
// into the past and future anyway, so clamp it to the i64 range.
|
||||
if (value < min_double)
|
||||
|
|
|
@ -35,7 +35,7 @@ String const& SourceCode::code() const
|
|||
|
||||
void SourceCode::fill_position_cache() const
|
||||
{
|
||||
constexpr size_t predicted_mimimum_cached_positions = 8;
|
||||
constexpr size_t predicted_minimum_cached_positions = 8;
|
||||
constexpr size_t minimum_distance_between_cached_positions = 32;
|
||||
constexpr size_t maximum_distance_between_cached_positions = 8192;
|
||||
|
||||
|
@ -46,7 +46,7 @@ void SourceCode::fill_position_cache() const
|
|||
size_t line = 1;
|
||||
size_t column = 1;
|
||||
size_t offset_of_last_starting_point = 0;
|
||||
m_cached_positions.ensure_capacity(predicted_mimimum_cached_positions + m_code.bytes().size() / maximum_distance_between_cached_positions);
|
||||
m_cached_positions.ensure_capacity(predicted_minimum_cached_positions + m_code.bytes().size() / maximum_distance_between_cached_positions);
|
||||
m_cached_positions.append({ .line = 1, .column = 1, .offset = 0 });
|
||||
|
||||
Utf8View const view(m_code);
|
||||
|
|
|
@ -71,9 +71,9 @@ describe("correct behaviour", () => {
|
|||
});
|
||||
|
||||
test("gets undefined in completed state", () => {
|
||||
const ninethRunResult = runGenerator("bad8", false);
|
||||
expect(ninethRunResult.value).toBeUndefined();
|
||||
expect(ninethRunResult.done).toBeTrue();
|
||||
const ninthRunResult = runGenerator("bad8", false);
|
||||
expect(ninthRunResult.value).toBeUndefined();
|
||||
expect(ninthRunResult.done).toBeTrue();
|
||||
});
|
||||
|
||||
async function* implicitReturnFunction() {
|
||||
|
|
|
@ -168,7 +168,7 @@ describe("behavior with exceptions", () => {
|
|||
expect(inCatch).toBeTrue();
|
||||
});
|
||||
|
||||
test.xfail("normal error and multiple disposing erorrs give chaining suppressed errors", () => {
|
||||
test.xfail("normal error and multiple disposing errors give chaining suppressed errors", () => {
|
||||
let inCatch = false;
|
||||
try {
|
||||
using a = { [Symbol.dispose]() {
|
||||
|
@ -345,7 +345,7 @@ describe("using is still a valid variable name", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("syntax errors / werid artifacts which remain valid", () => {
|
||||
describe("syntax errors / weird artifacts which remain valid", () => {
|
||||
test("no patterns in using", () => {
|
||||
expect("using {a} = {}").not.toEval();
|
||||
expect("using a, {a} = {}").not.toEval();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue