Browse Source

[core] Minor fix

master
Muthu Kumar 6 years ago
parent
commit
e7bc7eb7ed
  1. 4
      es5/infinity.js
  2. 2
      es5/infinity.min.js
  3. 4
      package.json
  4. 4
      src/InfiniteList.js

4
es5/infinity.js

@ -66,10 +66,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
return key in obj || areNumbers(index) && index % 1 === 0 && index >= 0;
},
enumerate: function enumerate(obj) {
return obj.keys();
return Object.keys(obj);
},
ownKeys: function ownKeys(obj) {
return obj.keys();
return Object.keys(obj);
}
};

2
es5/infinity.min.js

File diff suppressed because one or more lines are too long

4
package.json

@ -5,8 +5,8 @@
"main": "es5/infinity.min.js",
"scripts": {
"build": "./build.sh",
"test:es6": "NODE_ENV=development jasmine",
"test:es5": "NODE_ENV=production npm run build && jasmine",
"test:es6": "NODE_ENV=development npx jasmine",
"test:es5": "NODE_ENV=production npm run build && npx jasmine",
"test": "npm run test:es6 && npm run test:es5",
"prepublishOnly": "npm test"
},

4
src/InfiniteList.js

@ -29,8 +29,8 @@ const handler = {
(index >= 0))
)
},
enumerate: obj => obj.keys(),
ownKeys: obj => obj.keys(),
enumerate: obj => Object.keys(obj),
ownKeys: obj => Object.keys(obj),
};
class InfiniteList {

Loading…
Cancel
Save