File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
#define IOSTREAM_DATA_CONSTRUCTOR " iostream:ctor"
7
7
8
- using v8::CopyablePersistentTraits;
9
8
using v8::DEFAULT;
10
9
using v8::External;
11
10
using v8::Function;
@@ -185,12 +184,9 @@ class WriteOperation : public Operation<GIOStream> {
185
184
public:
186
185
WriteOperation (Isolate* isolate, Local<Value> buffer)
187
186
: stream_(NULL ),
188
- buffer_ (isolate, buffer),
189
187
data_ (node::Buffer::Data(buffer)),
190
188
count_(node::Buffer::Length(buffer)) {
191
- }
192
-
193
- ~WriteOperation () {
189
+ buffer_.Reset (buffer);
194
190
}
195
191
196
192
protected:
@@ -211,7 +207,7 @@ class WriteOperation : public Operation<GIOStream> {
211
207
212
208
private:
213
209
GOutputStream* stream_;
214
- Persistent<Value, CopyablePersistentTraits<Value>> buffer_;
210
+ Nan:: Persistent<Value, Nan:: CopyablePersistentTraits<Value>> buffer_;
215
211
const void * data_;
216
212
gsize count_;
217
213
};
You can’t perform that action at this time.
0 commit comments