KhronosGroup / KhronosGroup/WebGL

Syntax errors in some extra tests

Open
#444 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

Some of the tests under https://www.khronos.org/registry/webgl/sdk/tests/extra fail with syntax errors:
#### "Uncaught SyntaxError: In strict mode code, functions can only be declared at toplevel or immediately within another function."
- https://www.khronos.org/registry/webgl/sdk/tests/extra/fbo-lost-context.html
- https://www.khronos.org/registry/webgl/sdk/tests/extra/out-of-memory.html
- https://www.khronos.org/registry/webgl/sdk/tests/extra/out-of-resources.html
- https://www.khronos.org/registry/webgl/sdk/tests/extra/out-of-vram.html
#### "Uncaught ReferenceError: canvas is not defined"
- https://www.khronos.org/registry/webgl/sdk/tests/extra/offscreen-issue.html

Contributor guide

Open the contributing guide

Research direction

Open the five listed tests under tests/extra and reproduce the reported browser errors. Inspect the script sections in fbo-lost-context.html, out-of-memory.html, out-of-resources.html, out-of-vram.html, and offscreen-issue.html. Done means these tests load without the reported SyntaxError or ReferenceError.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
testing, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.