Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7f23f03e34b0c96770a05ac4b49cbc4da61cce57
https://github.com/WebKit/WebKit/commit/7f23f03e34b0c96770a05ac4b49cbc4da61cce57
Author: Tadeu Zagallo <[email protected]>
Date: 2026-05-12 (Tue, 12 May 2026)
Changed paths:
M Source/WebGPU/WGSL/Lexer.cpp
M Tools/TestWebKitAPI/Tests/WGSL/LexerTests.cpp
Log Message:
-----------
[WebGPU] iesna.eu/?wasm=skyglow_demo fails to compile shader
https://bugs.webkit.org/show_bug.cgi?id=314588
rdar://176827607
Reviewed by Mike Wyrzykowski.
The lexer incorrectly assumed that any float literals that didn't
have a fraction or exponent could be parsed as integers, but that
limited the size of the floats that could be parsed (only up to
19 digits). To fix that we simply check if the literal has a suffix
in addition to the existing checks for fraction and exponent.
Test: Tools/TestWebKitAPI/Tests/WGSL/LexerTests.cpp
* Source/WebGPU/WGSL/Lexer.cpp:
(WGSL::Lexer<T>::lexNumber):
* Tools/TestWebKitAPI/Tests/WGSL/LexerTests.cpp:
(TestWGSLAPI::TEST(WGSLLexerTests, SingleTokens)):
Canonical link: https://commits.webkit.org/313133@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications