Closed
Description
- Version: v8.4.0
- Platform: Darwin mycomputer.example.org 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
If I have this code:
const Canvas = require("canvas");
console.log('foo');
const canvas = new Canvas(1039, 100);
console.log('done');
and canvas
is "canvas": "^1.6.6",
and then I run node --inspect=31852 --debug-brk dist/index.js
, attach the chrome debugger and I place a breakpoint on the console.log('done');
this will crash with:
Assertion failed: (object->InternalFieldCount() > 0), function Unwrap, file ../../nan/nan_object_wrap.h, line 33.
same is true for debugging with vscode.
However the same code works when running without a breakpoint/debugger. Thats why I assume a bug within node itself.