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

Assert failed! Expression: object->internalFieldCount() > 0 #1534

Closed
Misiur opened this issue Mar 13, 2020 · 0 comments · Fixed by #1550
Closed

Assert failed! Expression: object->internalFieldCount() > 0 #1534

Misiur opened this issue Mar 13, 2020 · 0 comments · Fixed by #1550
Assignees
Labels

Comments

@Misiur
Copy link

Misiur commented Mar 13, 2020

  • v13.11.0
  • Windows 10 x64

What steps will reproduce the bug?

const {
  loadImage,
} = require('canvas');

async function main() {
  const image = await loadImage('./assets/simple.gif');
  console.log(image);
}

main();

Run node debugger, breakpoint on console log, hover over image, try to inspect __proto__

How often does it reproduce? Is there a required condition?

What is the expected behavior?

Working debug

What do you see instead?

Assert failed! Expression: object->internalFieldCount() > 0
https://i.imgur.com/81MxbKB.png

Additional information

Hover via VSCode, but related issues point to that being directly node bug.

zbjornson added a commit to zbjornson/node-canvas that referenced this issue Apr 6, 2020
GetSource and SetSource are sort of weird plain functions that require
the `this` context to be an Image instance.

Fixes Automattic#1534
@zbjornson zbjornson self-assigned this Apr 6, 2020
@zbjornson zbjornson added the Bug label Apr 6, 2020
zbjornson added a commit that referenced this issue Apr 6, 2020
…to (#1550)

GetSource and SetSource are sort of weird plain functions that require
the `this` context to be an Image instance.

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

Successfully merging a pull request may close this issue.

2 participants