Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 01f58544e308c7d22d8e7f37694b1af802ecffcc..483e6a632a3e6f975a9f8bee259869d5e318251a 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -854,7 +854,7 @@ Handle<Object> Factory::NewError(const char* maker, |
const char* message, |
Vector< Handle<Object> > args) { |
// Instantiate a closeable HandleScope for EscapeFrom. |
- v8::HandleScope scope(reinterpret_cast<v8::Isolate*>(isolate())); |
+ v8::EscapableHandleScope scope(reinterpret_cast<v8::Isolate*>(isolate())); |
Handle<FixedArray> array = NewFixedArray(args.length()); |
for (int i = 0; i < args.length(); i++) { |
array->set(i, *args[i]); |