diff --git a/lib/application.js b/lib/application.js index fbea4a4..c3edd5a 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');