https://github.com/fivdi/spi-device/blob/master/spi-device.d.ts#L44
declares that options parameter can be null or undefined but node crashes using these values:
With null:
var spi = require("spi-device");
var d = spi.open(0, 0, null, err => console.log(err));
// FATAL ERROR: v8::Object::Cast Could not convert to object
With undefined:
var spi = require("spi-device");
var d = spi.open(0, 0, undefined, err => console.log(err));
// FATAL ERROR: v8::Object::Cast Could not convert to object
https://github.com/fivdi/spi-device/blob/master/spi-device.d.ts#L44
declares that options parameter can be
nullorundefinedbut node crashes using these values:With
null:With
undefined: