| Index: src/regexp/regexp-parser.cc
|
| diff --git a/src/regexp/regexp-parser.cc b/src/regexp/regexp-parser.cc
|
| index dba81ae9a712d616dc4f6a480bd45bf873e31db9..4a7f8fa54cd8c30e9bdfa7dc17414e4c6b59a499 100644
|
| --- a/src/regexp/regexp-parser.cc
|
| +++ b/src/regexp/regexp-parser.cc
|
| @@ -721,8 +721,7 @@ const ZoneVector<uc16>* RegExpParser::ParseCaptureGroupName() {
|
| DCHECK(FLAG_harmony_regexp_named_captures);
|
| DCHECK(unicode());
|
|
|
| - ZoneVector<uc16>* name =
|
| - new (zone()->New(sizeof(ZoneVector<uc16>))) ZoneVector<uc16>(zone());
|
| + ZoneVector<uc16>* name = new (zone()) ZoneVector<uc16>(zone());
|
|
|
| bool at_start = true;
|
| while (true) {
|
|
|