Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new CanvasGradient() causes a hard crash #40

Closed
hamish-milne opened this issue Jan 13, 2022 · 1 comment
Closed

new CanvasGradient() causes a hard crash #40

hamish-milne opened this issue Jan 13, 2022 · 1 comment
Assignees

Comments

@hamish-milne
Copy link
Contributor

Repro: new CanvasGradient()

Expected output:

Uncaught TypeError: Illegal constructor
    at <anonymous>:1:1

Actual output: crash, Assertion failed on ..\src\js_api_canvas.cc:1961: false

@joaodasilva joaodasilva self-assigned this Jan 13, 2022
@joaodasilva
Copy link
Contributor

Confirmed, consistent crash.

CanvasGradient is a funny API. The objects must be created via canvas.createLinearGradient and canvas.createRadialGradient, but the constructor also exists, yet it throws TypeError if used. Window.js should throw too, instead of crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants