Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in / Register
V
V8
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Linshizhi
  • V8
  • Repository

Switch branch/tag
  • v8
  • test
  • debugger
  • debug
  • side-effect
History Find file
  • Source code
  • Download zip
  • Download tar.gz
  • Download tar.bz2
  • Download tar
  • peterwmwong's avatar
    [esnext] Ship String.p.matchAll/RegExp.p.[@@matchAll] · 76cb4fe6
    peterwmwong authored Dec 14, 2018
    Enable --harmony-string-matchall by default.
    
    String.prototype.matchAll behaves similarly to
    String.prototype.match, but returns a full regexp
    result object for each match in a global or sticky
    regexp. This offers a simple way to iterate over
    matches when access to e.g. capture groups is
    needed.
    
    const string = 'a b c';
    const regex = /[ac]/g;
    for (const match of string.matchAll(regex)) {
      console.log(`${match[0]} at ${match.index}`);
    }
    // a at 0
    // c at 4
    
    More information can be found here:
    https://github.com/tc39/proposal-string-matchall
    
    Drive-by: Update debug evaluate side effect
    expectations to handle String.p.matchAll and
    RegExp.p[@@matchAll]
    
    Bug: v8:6890
    Change-Id: Ie3e712af66689936b7d2a15df705b792ccf06bd3
    Reviewed-on: https://chromium-review.googlesource.com/c/1377774Reviewed-by: 's avatarMathias Bynens <mathias@chromium.org>
    Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Commit-Queue: Peter Wong <peter.wm.wong@gmail.com>
    Cr-Commit-Position: refs/heads/master@{#58250}
    76cb4fe6
Name
Last commit
Last update
..
debug-evaluate-no-side-effect-async.js Loading commit data...
debug-evaluate-no-side-effect-builtins-2.js Loading commit data...
debug-evaluate-no-side-effect-builtins.js Loading commit data...
debug-evaluate-no-side-effect-control.js Loading commit data...
debug-evaluate-no-side-effect-iife.js Loading commit data...
debug-evaluate-no-side-effect-ops.js Loading commit data...
debug-evaluate-no-side-effect-regexp.js Loading commit data...
debug-evaluate-no-side-effect-runtime-check.js Loading commit data...
debug-evaluate-no-side-effect.js Loading commit data...