mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-12-01 10:34:23 +01:00
[util/gpu/web] Silence "empty character constant" warnings
EM_ASM stringifies its body, but the C tokenizer still parses single-quoted '' as an empty char constant. Use double-quoted "" -- valid JS empty string, no warning. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f8491cdb66
commit
14259b79dc
1 file changed
+2
-2
@@ -766,7 +766,7 @@ on_adapter (WGPURequestAdapterStatus status,
|
||||
window._webgpuError = true;
|
||||
var el = document.getElementById ('loading');
|
||||
if (el) {
|
||||
el.style.display = '';
|
||||
el.style.display = "";
|
||||
var html = 'WebGPU adapter not available.<br>' +
|
||||
'<a href="https://github.com/gpuweb/gpuweb/wiki/Implementation-Status" ' +
|
||||
'style="color:#88f">Browser support status</a>';
|
||||
@@ -1040,7 +1040,7 @@ main (int argc, char **argv)
|
||||
window._webgpuError = true;
|
||||
var el = document.getElementById ('loading');
|
||||
if (el) {
|
||||
el.style.display = '';
|
||||
el.style.display = "";
|
||||
el.innerHTML = 'WebGPU is not available in this browser.<br>' +
|
||||
'<a href="index.html" style="color:#88f">Try the WebGL version</a>';
|
||||
el.style.font = '18px sans-serif';
|
||||
|
||||
Reference in new issue
Block a user