Browse Source

deps: upgrade to V8 5.0.71.33

This picks up the fix for harmony-regexp-properties being enabled
without a flag.

V8-Commit: https://github.com/v8/v8/commit/27ac008
Fixes: https://github.com/nodejs/node/issues/6251
PR-URL: https://github.com/nodejs/node/pull/6290
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
Reviewed-By: ChALkeR - Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
process-exit-stdio-flushing
Ali Ijaz Sheikh 9 years ago
parent
commit
4fbd375724
  1. 2
      deps/v8/include/v8-version.h
  2. 16
      deps/v8/src/regexp/regexp-parser.cc

2
deps/v8/include/v8-version.h

@ -11,7 +11,7 @@
#define V8_MAJOR_VERSION 5 #define V8_MAJOR_VERSION 5
#define V8_MINOR_VERSION 0 #define V8_MINOR_VERSION 0
#define V8_BUILD_NUMBER 71 #define V8_BUILD_NUMBER 71
#define V8_PATCH_LEVEL 32 #define V8_PATCH_LEVEL 33
// Use 1 for candidates and 0 otherwise. // Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.) // (Boolean macro values are not supported by all preprocessors.)

16
deps/v8/src/regexp/regexp-parser.cc

@ -358,13 +358,17 @@ RegExpTree* RegExpParser::ParseDisjunction() {
uc32 p = Next(); uc32 p = Next();
Advance(2); Advance(2);
if (unicode()) { if (unicode()) {
ZoneList<CharacterRange>* ranges = ParsePropertyClass(); if (FLAG_harmony_regexp_property) {
if (ranges == nullptr) { ZoneList<CharacterRange>* ranges = ParsePropertyClass();
return ReportError(CStrVector("Invalid property name")); if (ranges == nullptr) {
return ReportError(CStrVector("Invalid property name"));
}
RegExpCharacterClass* cc =
new (zone()) RegExpCharacterClass(ranges, p == 'P');
builder->AddCharacterClass(cc);
} else {
return ReportError(CStrVector("Invalid escape"));
} }
RegExpCharacterClass* cc =
new (zone()) RegExpCharacterClass(ranges, p == 'P');
builder->AddCharacterClass(cc);
} else { } else {
builder->AddCharacter(p); builder->AddCharacter(p);
} }

Loading…
Cancel
Save