Skip to content

Commit

Permalink
v8: add a js class for Serializer/Deserializer
Browse files Browse the repository at this point in the history
Calling Serializer/Deserializer without new crashes node.
Adding a js class which just inherits cpp bindings.
Added regression tests.

Fixes: nodejs#13326
  • Loading branch information
zimbabao committed Jun 10, 2017
1 parent 955a1bb commit 1de429c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/v8.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

const { Buffer } = require('buffer');
const {
Serializer: _Serializer,
Deserializer: _Deserializer
} = process.binding('serdes');
Serializer: _Serializer,
Deserializer: _Deserializer
} = process.binding('serdes');
const { copy } = process.binding('buffer');
const { objectToString } = require('internal/util');
const { FastBuffer } = require('internal/buffer');
Expand Down

0 comments on commit 1de429c

Please sign in to comment.