Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7c9b3a28260f813e33d0a601c4d00a957347905e
https://github.com/WebKit/WebKit/commit/7c9b3a28260f813e33d0a601c4d00a957347905e
Author: Devin Rousso <[email protected]>
Date: 2026-07-04 (Sat, 04 Jul 2026)
Changed paths:
M LayoutTests/inspector/runtime/evaluate-CommandLineAPI-expected.txt
M LayoutTests/inspector/runtime/evaluate-CommandLineAPI.html
A LayoutTests/inspector/runtime/repl-redeclaration-expected.txt
A LayoutTests/inspector/runtime/repl-redeclaration.html
M Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp
M Source/JavaScriptCore/jsc.cpp
M Source/JavaScriptCore/runtime/ProgramExecutable.cpp
M Source/JavaScriptCore/runtime/VM.h
Log Message:
-----------
Web Inspector: Allow redefinition of let and const in REPL
https://bugs.webkit.org/show_bug.cgi?id=285757
<rdar://problem/143140659>
Reviewed by Keith Miller.
* Source/JavaScriptCore/runtime/VM.h:
(JSC::VM::setAllowRedeclaringSymbols): Added.
(JSC::VM::allowRedeclaringSymbols const): Added.
* Source/JavaScriptCore/runtime/ProgramExecutable.cpp:
(JSC::ProgramExecutable::initializeGlobalProperties):
* Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp:
(Inspector::JSInjectedScriptHost::evaluateWithScopeExtension):
* Source/JavaScriptCore/jsc.cpp:
(runInteractive):
Drive-by: also add this for `jsc`.
* LayoutTests/inspector/runtime/evaluate-CommandLineAPI.html:
* LayoutTests/inspector/runtime/evaluate-CommandLineAPI-expected.txt:
* LayoutTests/inspector/runtime/repl-redeclaration.html: Added.
* LayoutTests/inspector/runtime/repl-redeclaration-expected.txt: Added.
Canonical link: https://commits.webkit.org/316523@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications