Index: samples/process.cc |
diff --git a/samples/process.cc b/samples/process.cc |
index 48ad33fdc78d64b85a0d11dc5d6e34c7f86f1fb0..37b4d3920897b1a613d8fb8a6d7e10568a11e07a 100644 |
--- a/samples/process.cc |
+++ b/samples/process.cc |
@@ -160,7 +160,7 @@ bool JsHttpRequestProcessor::Initialize(map<string, string>* opts, |
// Create a template for the global object where we set the |
// built-in global functions. |
- Handle<ObjectTemplate> global = ObjectTemplate::New(); |
+ Handle<ObjectTemplate> global = ObjectTemplate::New(GetIsolate()); |
global->Set(String::NewFromUtf8(GetIsolate(), "log"), |
FunctionTemplate::New(GetIsolate(), LogCallback)); |
@@ -401,7 +401,7 @@ Handle<ObjectTemplate> JsHttpRequestProcessor::MakeMapTemplate( |
Isolate* isolate) { |
EscapableHandleScope handle_scope(isolate); |
- Local<ObjectTemplate> result = ObjectTemplate::New(); |
+ Local<ObjectTemplate> result = ObjectTemplate::New(isolate); |
result->SetInternalFieldCount(1); |
result->SetNamedPropertyHandler(MapGet, MapSet); |
@@ -511,7 +511,7 @@ Handle<ObjectTemplate> JsHttpRequestProcessor::MakeRequestTemplate( |
Isolate* isolate) { |
EscapableHandleScope handle_scope(isolate); |
- Local<ObjectTemplate> result = ObjectTemplate::New(); |
+ Local<ObjectTemplate> result = ObjectTemplate::New(isolate); |
result->SetInternalFieldCount(1); |
// Add accessors for each of the fields of the request. |