Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bb1b969c6097406ce2b7358867ecc6d1a2d5ab49
      
https://github.com/WebKit/WebKit/commit/bb1b969c6097406ce2b7358867ecc6d1a2d5ab49
  Author: Fady Farag <[email protected]>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h
    M Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
    M Source/JavaScriptCore/dfg/DFGStrengthReductionPhase.cpp

  Log Message:
  -----------
  Remove unnecessary `std::optional` initialization in JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=316730
rdar://179175737

Reviewed by Keith Miller.

ISO C++ Standard explicitly guarantees that a default-initialized std::optional
does not contain a value. So, initializing one with std::nullopt is redundant.

* Source/JavaScriptCore/API/JSRemoteInspector.cpp:
* Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:
(JSC::BytecodeGenerator::makeFunction):
* Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:
(JSC::PropertyListNode::emitBytecode):
* Source/JavaScriptCore/dfg/DFGStrengthReductionPhase.cpp:
(JSC::DFG::StrengthReductionPhase::handleNode):

Canonical link: https://commits.webkit.org/315064@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to