Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 125543708a962e7cae4ca21bf425787127bc9c1c
https://github.com/WebKit/WebKit/commit/125543708a962e7cae4ca21bf425787127bc9c1c
Author: Sergey Rubanov <[email protected]>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
A JSTests/typeProfiler/missing-expression.js
M Source/JavaScriptCore/runtime/TypeProfiler.cpp
M Source/JavaScriptCore/tools/JSDollarVM.cpp
Log Message:
-----------
[JSC] Do not crash on a TypeProfiler query with no location
https://bugs.webkit.org/show_bug.cgi?id=323314
rdar://187192997
Reviewed by Yusuke Suzuki.
findLocation can return null when the expression is missing or
never executed. Return empty type info instead of dereferencing
that pointer. $vm.findTypeForExpression returns null when the
substring is not in the function source.
* JSTests/typeProfiler/missing-expression.js: Added.
* Source/JavaScriptCore/runtime/TypeProfiler.cpp:
* Source/JavaScriptCore/tools/JSDollarVM.cpp:
Canonical link: https://commits.webkit.org/321203@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications