Skip to content
Permalink
Browse files

Buffer, bugfix: bind isolate when creating a new Buffer

  • Loading branch information...
Fiber-Man authored and xicilion committed Jun 24, 2019
1 parent 3c46c38 commit c6fa2d78ae68e66a88250a1deb02dcf6f286ebe7
Showing with 1 addition and 0 deletions.
  1. +1 −0 fibjs/src/global/Buffer.cpp
@@ -51,6 +51,7 @@ result_t Buffer_base::_new(int32_t size, obj_ptr<Buffer_base>& retVal,
v8::Local<v8::Object> This)
{
retVal = new Buffer();
retVal->wrap(This);
return retVal->resize(size);
}

0 comments on commit c6fa2d7

Please sign in to comment.
You can’t perform that action at this time.