From 5daf3ca7fae9d7848081e29a47f50c19fb2869f4 Mon Sep 17 00:00:00 2001 From: Jiawei Shao Date: Sat, 17 Dec 2022 06:39:11 +0800 Subject: [PATCH] Fix wrong _errorLine in operation/shader_module/compilation_info.spec.ts (#2088) This patch fixes the wrong value of _errorLine of the shader named 'carriage-return' in kInvalidShaderSources. The correct error line should be 5: line 1: \n line 2: @vertex fn main() -> @builtin(position) vec4 {\r\n line 3: \n line 4: // Expected Error: unknown function 'unknown' line 5: return unknown(0.0, 0.0, 0.0, 1.0); --- src/webgpu/api/operation/shader_module/compilation_info.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgpu/api/operation/shader_module/compilation_info.spec.ts b/src/webgpu/api/operation/shader_module/compilation_info.spec.ts index 656606dc52b8..bbd02892eb5d 100644 --- a/src/webgpu/api/operation/shader_module/compilation_info.spec.ts +++ b/src/webgpu/api/operation/shader_module/compilation_info.spec.ts @@ -53,7 +53,7 @@ const kInvalidShaderSources = [ { valid: false, name: 'carriage-return', - _errorLine: 4, + _errorLine: 5, _code: ` @vertex fn main() -> @builtin(position) vec4 {` +