[webkit-changes] [WebKit/WebKit] b2f46f: [WGSL] Validate against array type without templat...

Tadeu Zagallo noreply at github.com
Fri Jan 26 08:20:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b2f46f05872251e3abce99e1b47d1456952611c4
      https://github.com/WebKit/WebKit/commit/b2f46f05872251e3abce99e1b47d1456952611c4
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2024-01-26 (Fri, 26 Jan 2024)

  Changed paths:
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Source/WebGPU/WGSL/tests/invalid/array.wgsl

  Log Message:
  -----------
  [WGSL] Validate against array type without template arguments
https://bugs.webkit.org/show_bug.cgi?id=268092
rdar://117905213

Reviewed by Mike Wyrzykowski.

We were failing an assertion instead of returning a type error.

* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/invalid/array.wgsl:

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




More information about the webkit-changes mailing list