| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 9135d542c0460224997232eb40ef06f076ab8fe1..fece9a09c91779c6f360d842a7c2b3b9a7a51791 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -703,9 +703,11 @@ Handle<Object> Factory::NewReferenceError(Handle<String> message) {
|
| }
|
|
|
|
|
| -Handle<Object> Factory::NewError(const char* maker, const char* type,
|
| - Vector< Handle<Object> > args) {
|
| - v8::HandleScope scope; // Instantiate a closeable HandleScope for EscapeFrom.
|
| +Handle<Object> Factory::NewError(const char* maker,
|
| + const char* type,
|
| + Vector< Handle<Object> > args) {
|
| + // Instantiate a closeable HandleScope for EscapeFrom.
|
| + v8::HandleScope 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]);
|
|
|