mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibJS: Stop tracking whether execution context is strict mode or not
This was only used for basic testing, and forced us to plumb this flag flag in a bunch of places.
This commit is contained in:
committed by
Andreas Kling
parent
fb05063dde
commit
fdb85a330e
Notes:
github-actions[bot]
2025-10-29 20:22:21 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/fdb85a330ed Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6629
@@ -709,9 +709,6 @@ ThrowCompletionOr<void> SourceTextModule::execute_module(VM& vm, GC::Ptr<Promise
|
||||
ExecutionContext* module_context = nullptr;
|
||||
ALLOCATE_EXECUTION_CONTEXT_ON_NATIVE_STACK(module_context, registers_and_constants_and_locals_count, 0);
|
||||
|
||||
// NOTE: This is not in the spec but we require it.
|
||||
module_context->is_strict_mode = true;
|
||||
|
||||
// 2. Set the Function of moduleContext to null.
|
||||
|
||||
// 3. Set the Realm of moduleContext to module.[[Realm]].
|
||||
|
||||
Reference in New Issue
Block a user