Skip to content

Commit b8b3b95

Browse files
committed
Add Object.entries ponyfill
1 parent a7f5c7f commit b8b3b95

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
},
2626
"dependencies": {
2727
"inherits": "2.0.3",
28-
"is-arguments": "^1.0.4"
28+
"is-arguments": "^1.0.4",
29+
"object.entries": "^1.1.0"
2930
},
3031
"license": "MIT",
3132
"devDependencies": {

test/node/types.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const assert = require('assert');
88
const { types } = require('../../');
99
const vm = require('vm');
1010

11+
const objectEntries = require('object.entries');
12+
1113
const inspect = value => {
1214
try {
1315
return JSON.stringify(value);
@@ -200,7 +202,7 @@ console.log('Testing', 'isBoxedPrimitive');
200202
new BigUint64Array(arrayBuffer()), BigUint64Array.prototype
201203
);
202204

203-
const typedArrays = Object.entries({
205+
const typedArrays = objectEntries({
204206
primitive, arrayBuffer, buffer, fakeBuffer,
205207
dataView, fakeDataView, stealthyDataView,
206208
uint8Array, fakeUint8Array, stealthyUint8Array,

0 commit comments

Comments
 (0)