X Tutup
Skip to content

Commit 591cfe6

Browse files
trevnorrisbnoordhuis
authored andcommitted
src: add node_isolate to remaining scopes
1 parent c985095 commit 591cfe6

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3143,7 +3143,7 @@ int Start(int argc, char *argv[]) {
31433143
V8::Initialize();
31443144
{
31453145
Locker locker(node_isolate);
3146-
HandleScope handle_scope;
3146+
HandleScope handle_scope(node_isolate);
31473147

31483148
// Create the one and only Context.
31493149
Persistent<Context> context = Context::New();

src/node_crypto.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ Handle<Value> SecureContext::SetSessionIdContext(const Arguments& args) {
638638
}
639639

640640
Handle<Value> SecureContext::SetSessionTimeout(const Arguments& args) {
641-
HandleScope scope;
641+
HandleScope scope(node_isolate);
642642

643643
SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
644644

@@ -3567,7 +3567,7 @@ static void array_push_back(const TypeName* md,
35673567

35683568

35693569
Handle<Value> GetCiphers(const Arguments& args) {
3570-
HandleScope scope;
3570+
HandleScope scope(node_isolate);
35713571
Local<Array> arr = Array::New();
35723572
EVP_CIPHER_do_all_sorted(array_push_back<EVP_CIPHER>, &arr);
35733573
return scope.Close(arr);

src/node_internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ inline static int snprintf(char* buf, unsigned int len, const char* fmt, ...) {
7878
// sometimes fails to resolve it...
7979
#define THROW_ERROR(fun) \
8080
do { \
81-
v8::HandleScope scope; \
81+
v8::HandleScope scope(node_isolate); \
8282
return v8::ThrowException(fun(v8::String::New(errmsg))); \
8383
} \
8484
while (0)

src/node_object_wrap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class NODE_EXTERN ObjectWrap {
116116
static void WeakCallback(v8::Isolate* env,
117117
v8::Persistent<v8::Value> value,
118118
void* data) {
119-
v8::HandleScope scope;
119+
v8::HandleScope scope(node_isolate);
120120

121121
ObjectWrap *obj = static_cast<ObjectWrap*>(data);
122122
assert(value == obj->handle_);

src/req_wrap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ template <typename T>
3535
class ReqWrap {
3636
public:
3737
ReqWrap() {
38-
v8::HandleScope scope;
38+
v8::HandleScope scope(node_isolate);
3939
object_ = v8::Persistent<v8::Object>::New(node_isolate, v8::Object::New());
4040

4141
v8::Local<v8::Value> domain = v8::Context::GetCurrent()

src/tcp_wrap.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Handle<Value> TCPWrap::SetSimultaneousAccepts(const Arguments& args) {
258258

259259

260260
Handle<Value> TCPWrap::Open(const Arguments& args) {
261-
HandleScope scope;
261+
HandleScope scope(node_isolate);
262262
UNWRAP(TCPWrap)
263263
int fd = args[0]->IntegerValue();
264264
uv_tcp_open(&wrap->handle_, fd);

0 commit comments

Comments
 (0)
X Tutup