Index: samples/process.cc |
diff --git a/samples/process.cc b/samples/process.cc |
index e6f2ee3adddc222ae04aa155141969a16669eb77..d1d36ca1c416b19e042a30fd20e639e18fb98a8e 100644 |
--- a/samples/process.cc |
+++ b/samples/process.cc |
@@ -324,7 +324,7 @@ Handle<Object> JsHttpRequestProcessor::WrapMap(map<string, string>* obj) { |
// Wrap the raw C++ pointer in an External so it can be referenced |
// from within JavaScript. |
- Handle<External> map_ptr = External::New(obj); |
+ Handle<External> map_ptr = External::New(GetIsolate(), obj); |
// Store the map pointer in the JavaScript wrapper. |
result->SetInternalField(0, map_ptr); |
@@ -432,7 +432,7 @@ Handle<Object> JsHttpRequestProcessor::WrapRequest(HttpRequest* request) { |
// Wrap the raw C++ pointer in an External so it can be referenced |
// from within JavaScript. |
- Handle<External> request_ptr = External::New(request); |
+ Handle<External> request_ptr = External::New(GetIsolate(), request); |
// Store the request pointer in the JavaScript wrapper. |
result->SetInternalField(0, request_ptr); |