Closed Pimm closed 1 year ago
Approved the change, because the change itself looks good, but did you check for other occurrences of Object.*
functions that are not supported by Node <12?
I just checked. The only other functions we're using are Object.assign
and Object.create
, so we should we OK.
We do test on Node.js 6. It just turns out there is no .toString()
in the test suite. Come to think of it, I might as well add that.
Inspecting objects (payments, customers, subscriptions, etc.) would throw an error on Node.js < 12, because the
inspect.custom
implementation relied on bothObject.entries
andObject.fromEntries
.