diff --git a/lib/application.js b/lib/application.js index fbea4a4d3..c3edd5ab6 100644 --- a/lib/application.js +++ b/lib/application.js @@ -7,7 +7,7 @@ const isGeneratorFunction = require('is-generator-function'); const debug = require('debug')('koa:application'); -const Emitter = require('events').EventEmitter; +const Emitter = require('events'); const onFinished = require('on-finished'); const response = require('./response'); const compose = require('koa-compose');