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 a01ddfb commit 44ca60fCopy full SHA for 44ca60f
lib/core.js
@@ -44,7 +44,7 @@ function versionIncluded(specifierValue) {
44
45
var data = require('./core.json');
46
47
-var core = {};
+var core = Object.create(null);
48
for (var mod in data) { // eslint-disable-line no-restricted-syntax
49
if (Object.prototype.hasOwnProperty.call(data, mod)) {
50
core[mod] = versionIncluded(data[mod]);
test/core.js
@@ -10,6 +10,9 @@ test('core modules', function (t) {
10
11
st.ok(!resolve.isCore('seq'));
12
st.ok(!resolve.isCore('../'));
13
+
14
+ st.ok(!resolve.isCore('toString'));
15
16
st.end();
17
});
18
0 commit comments