8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e129d8 commit ed8c2e4Copy full SHA for ed8c2e4
.gitignore
@@ -34,3 +34,4 @@ node_modules
34
35
# Distributables
36
dist/
37
+.nyc_output/
packages/feathers/lib/index.js
@@ -3,9 +3,12 @@ const Proto = require('uberproto');
3
const Application = require('./application');
4
const version = require('./version');
5
const { ACTIVATE_HOOKS, activateHooks } = require('./hooks');
6
+// A base object Prototype that does not inherit from a
7
+// potentially polluted Object prototype
8
+const baseObject = Object.create(null);
9
10
function createApplication () {
- const app = {};
11
+ const app = Object.create(baseObject);
12
13
// Mix in the base application
14
Proto.mixin(Application, app);
0 commit comments