Match index for regular expressions
V8 9 introduces a match index for regular expressions (RegExp). Developers have the option of calling up an array with the start and end positions of the corresponding capture group in a match with RegExp. The array is via the property
available for match objects if the regular expression has the flag
What is also new is that you can use the keyword
can now be used to access properties and functions of the parent object. Until now, access to a super property (e.g.
) implemented via a runtime call. With V8 9.0, the inline cache system (IC) is used in non-optimized code, which generates the corresponding optimized code for access to the super property without having to resort to the runtime. This apparently increases the speed for accessing properties.
can be deactivated.
Due to a recently discovered grammatical ambiguity
becomes the token sequence for
for (async of