KhronosGroup / KhronosGroup/WebGL

IDL contains typedefs nested in interface

Open
#3,561 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
2.9k
Forks
703
Avg merge
2d 9h
Merged PRs (30d)
4

Description

The file `specs/1.0.3/webgl.idl` contains typedefs inside interface definitions. This is not permitted by the IDL grammar, and prevents some IDL tools (specifically, webidl2.js) from parsing the file.

The typedefs are (with line numbers):

```
519 typedef (ArrayBuffer or ArrayBufferView) BufferDataSource;
```

```
646 typedef (ImageData or
647 HTMLImageElement or
648 HTMLCanvasElement or
649 HTMLVideoElement) TexImageSource;
```

Contributor guide

Open the contributing guide

Research direction

Inspect specs/1.0.3/webgl.idl around lines 519 and 646-649, then use webidl2.js to reproduce the parsing failure. Determine how the typedef declarations should be represented outside the interface definitions, and verify that the corrected file parses successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.