Skip to content

Commit 5daf3ca

Browse files
authored
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<f32> {\r\n line 3: \n line 4: // Expected Error: unknown function 'unknown' line 5: return unknown(0.0, 0.0, 0.0, 1.0);
1 parent 47d19f5 commit 5daf3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgpu/api/operation/shader_module/compilation_info.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const kInvalidShaderSources = [
5353
{
5454
valid: false,
5555
name: 'carriage-return',
56-
_errorLine: 4,
56+
_errorLine: 5,
5757
_code:
5858
`
5959
@vertex fn main() -> @builtin(position) vec4<f32> {` +

0 commit comments

Comments
 (0)