var req = Object.create(http.IncomingMessage.prototype) Uncaught TypeError: Cannot read property 'prototype' of undefined at http://localhost:62625/____wallaby-bundle.js?1501265946287&wallabyFileId=bundle:219253
可能会发生http已被覆盖在代码中的某些位置.
var http = require('http'); var req = Object.create(http.IncomingMessage.prototype)
我测试了上面的代码,它的工作原理.