You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In assert.AssertionError, for some reason options.startStackFunction got renamed to options.startStackFn from v8.x to v10.x
This means you have to do var e = new AssertionError({ startStackFn: fn, startStackFunction: fn }) to have code that works across both versions of nodejs.
This seems like an unnecessary breaking change :( is there no policy or code review for API stability ?
In
assert.AssertionError, for some reasonoptions.startStackFunctiongot renamed tooptions.startStackFnfrom v8.x to v10.xThis means you have to do
var e = new AssertionError({ startStackFn: fn, startStackFunction: fn })to have code that works across both versions of nodejs.This seems like an unnecessary breaking change :( is there no policy or code review for API stability ?