Index: samples/shell.cc |
diff --git a/samples/shell.cc b/samples/shell.cc |
index e98eb75ad2f2afa71c48b11c178bb8ba398441b9..92a473231b88769eb40b19d63a97dde57b035de1 100644 |
--- a/samples/shell.cc |
+++ b/samples/shell.cc |
@@ -98,7 +98,7 @@ const char* ToCString(const v8::String::Utf8Value& value) { |
// functions. |
v8::Handle<v8::Context> CreateShellContext(v8::Isolate* isolate) { |
// Create a template for the global object. |
- v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(); |
+ v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(isolate); |
// Bind the global 'print' function to the C++ Print callback. |
global->Set(v8::String::NewFromUtf8(isolate, "print"), |
v8::FunctionTemplate::New(isolate, Print)); |