Index: src/global-handles.cc |
diff --git a/src/global-handles.cc b/src/global-handles.cc |
index cb3115abfca7db7ce9baec4a29c9da134437c223..9792463fc6f9467cc6fe3191b618360a7e8ee964 100644 |
--- a/src/global-handles.cc |
+++ b/src/global-handles.cc |
@@ -267,7 +267,7 @@ class GlobalHandles::Node { |
ASSERT(!object_->IsExternalTwoByteString() || |
ExternalTwoByteString::cast(object_)->resource() != NULL); |
// Leaving V8. |
- VMState state(isolate, EXTERNAL); |
+ VMState<EXTERNAL> state(isolate); |
if (near_death_callback_ != NULL) { |
if (IsWeakCallback::decode(flags_)) { |
WeakReferenceCallback callback = |