Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index e6cbd94f8cd60004dbc5732844ab0f454cf3e4b9..49712757929a83c3da439f8b72330a0764192e83 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -377,7 +377,7 @@ static Object* CallJsBuiltin(const char* name, |
name); |
ASSERT(js_builtin->IsJSFunction()); |
Handle<JSFunction> function(Handle<JSFunction>::cast(js_builtin)); |
- Vector<Object**> argv(Vector<Object**>::New(args.length() - 1)); |
+ ScopedVector<Object**> argv(args.length() - 1); |
int n_args = args.length() - 1; |
for (int i = 0; i < n_args; i++) { |
argv[i] = args.at<Object>(i + 1).location(); |
@@ -388,7 +388,6 @@ static Object* CallJsBuiltin(const char* name, |
n_args, |
argv.start(), |
&pending_exception); |
- argv.Dispose(); |
if (pending_exception) return Failure::Exception(); |
return *result; |
} |