Skip to content

Commit 77fa57b

Browse files
committed
add test
1 parent e3ab1dd commit 77fa57b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const fixtures = {
167167
json: '[["Uint8Array","AQID"]]'
168168
},
169169
{
170-
name: "ArrayBuffer",
170+
name: 'ArrayBuffer',
171171
value: new Uint8Array([1, 2, 3]).buffer,
172172
js: 'new Uint8Array([1,2,3]).buffer',
173173
json: '[["ArrayBuffer","AQID"]]'
@@ -429,9 +429,10 @@ const fixtures = {
429429
return `new Custom(${uneval(value.value)})`;
430430
}
431431
},
432-
reducers: {
432+
// test for https://github.com/Rich-Harris/devalue/pull/80
433+
reducers: Object.assign(Object.create({ polluted: true }), {
433434
Custom: (x) => x instanceof Custom && x.value
434-
},
435+
}),
435436
revivers: {
436437
Custom: (x) => new Custom(x)
437438
},

0 commit comments

Comments
 (0)