TritonDataCenter / node-assert-plus

Extra assertions on top of node's assert module
MIT License
122 stars 25 forks source link

TypeError: Function.prototype.toString requires that 'this' be a Function #34

Closed mk-pmb closed 5 years ago

mk-pmb commented 5 years ago
/…/node_modules/verror/node_modules/assert-plus/assert.js:1
TypeError: Function.prototype.toString requires that 'this' be a Function
    at Proxy.toString (<anonymous>)
    at Object.<anonymous> (/…/node_modules/verror/node_modules/assert-plus/assert.js:5:31)

require('verror/package.json').version = 1.10.0 require('verror/node_modules/assert-plus/package.json').version = 1.0.0 Node.js v8.15.0, npm v6.4.1, Ubuntu 14.04.5 LTS trusty

melloc commented 5 years ago

@mk-pmb Can you provide a minimal example that reproduces this? I'm not sure how this would happen.

mk-pmb commented 5 years ago

I wondered as well, because the lines in the source didn't really match. Meanwhile I tracked it down and it seems to be an error caused from another module that modifies the module system.