diff --git a/deps/v8z/include/v8-version.h b/deps/v8z/include/v8-version.h index 4d5266ba421b..a73d31b083c5 100644 --- a/deps/v8z/include/v8-version.h +++ b/deps/v8z/include/v8-version.h @@ -11,7 +11,7 @@ #define V8_MAJOR_VERSION 5 #define V8_MINOR_VERSION 0 #define V8_BUILD_NUMBER 71 -#define V8_PATCH_LEVEL 58 +#define V8_PATCH_LEVEL 59 // Use 1 for candidates and 0 otherwise. // (Boolean macro values are not supported by all preprocessors.) diff --git a/deps/v8z/src/regexp/jsregexp.cc b/deps/v8z/src/regexp/jsregexp.cc index b18e297daf58..2901eed4176c 100644 --- a/deps/v8z/src/regexp/jsregexp.cc +++ b/deps/v8z/src/regexp/jsregexp.cc @@ -5879,6 +5879,7 @@ Vector CharacterRange::GetWordBounds() { void CharacterRange::AddCaseEquivalents(Isolate* isolate, Zone* zone, ZoneList* ranges, bool is_one_byte) { + CharacterRange::Canonicalize(ranges); int range_count = ranges->length(); for (int i = 0; i < range_count; i++) { CharacterRange range = ranges->at(i); diff --git a/deps/v8z/test/mjsunit/regress/regress-5199.js b/deps/v8z/test/mjsunit/regress/regress-5199.js new file mode 100644 index 000000000000..818e71a06d30 --- /dev/null +++ b/deps/v8z/test/mjsunit/regress/regress-5199.js @@ -0,0 +1,5 @@ +// Copyright 2016 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +assertTrue(/(a[\u1000A])+/i.test('aa'));