Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 35cc1c92d9ed911415846ab64eeb7de593d26dde..5be1a6dc2b98ae4874b9a762c8ca2ac8a98272aa 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -1,4 +1,4 @@ |
-// Copyright 2011 the V8 project authors. All rights reserved. |
+// Copyright 2012 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -4682,8 +4682,8 @@ Expression* Parser::NewThrowError(Handle<String> constructor, |
elements->set(i, *element); |
} |
} |
- Handle<JSArray> array = isolate()->factory()->NewJSArrayWithElements(elements, |
- TENURED); |
+ Handle<JSArray> array = isolate()->factory()->NewJSArrayWithElements( |
+ elements, FAST_ELEMENTS, TENURED); |
ZoneList<Expression*>* args = new(zone()) ZoneList<Expression*>(2); |
args->Add(NewLiteral(type)); |