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

[V8] Error with new Sprite(null) #10374

Closed
adam-savard opened this issue Mar 25, 2024 · 2 comments
Closed

[V8] Error with new Sprite(null) #10374

adam-savard opened this issue Mar 25, 2024 · 2 comments

Comments

@adam-savard
Copy link
Contributor

Current Behavior

When invoking new Sprite(null), there is an error that occurs because the sprite assumes that options can be deconstructed.

Expected Behavior

A blank sprite should be produced

Steps to Reproduce

new Sprite(null)

Environment

  • pixi.js version: 8.0.4
  • Browser & Version: Chrome 122
  • OS & Version: Fedora 39

Possible Solution

No response

Additional Information

No response

@GoodBoyDigital
Copy link
Member

thanks for posting, does new Sprite() work?

@GoodBoyDigital
Copy link
Member

Hey @adam-savard , just did a quick check:

new Sprite() works ok.

I would say new Sprite(null) is akin to passing in bad constructor data, so will not class this one as a bug.

Closing for now, but happy to discuss!

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