diff --git a/lib/application.js b/lib/application.js index fc01474..5ac6102 100644 --- a/lib/application.js +++ b/lib/application.js @@ -106,6 +106,9 @@ app.context = function(obj){ debug('context: %j', names); names.forEach(function(name){ + if (Object.getOwnPropertyDescriptor(ctx, name)) { + debug('context: overwriting %j', name); + } var descriptor = Object.getOwnPropertyDescriptor(obj, name); Object.defineProperty(ctx, name, descriptor); });