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 e3ab1dd commit 77fa57bCopy full SHA for 77fa57b
test/test.js
@@ -167,7 +167,7 @@ const fixtures = {
167
json: '[["Uint8Array","AQID"]]'
168
},
169
{
170
- name: "ArrayBuffer",
+ name: 'ArrayBuffer',
171
value: new Uint8Array([1, 2, 3]).buffer,
172
js: 'new Uint8Array([1,2,3]).buffer',
173
json: '[["ArrayBuffer","AQID"]]'
@@ -429,9 +429,10 @@ const fixtures = {
429
return `new Custom(${uneval(value.value)})`;
430
}
431
432
- reducers: {
+ // test for https://github.com/Rich-Harris/devalue/pull/80
433
+ reducers: Object.assign(Object.create({ polluted: true }), {
434
Custom: (x) => x instanceof Custom && x.value
- },
435
+ }),
436
revivers: {
437
Custom: (x) => new Custom(x)
438
0 commit comments