v8: fix RegExp nits in v8_prof_polyfill.js · nodejs/node@d5bf137 · GitHub
Skip to content

Commit d5bf137

Browse files
vsemozhetbytMylesBorins
authored andcommitted
v8: fix RegExp nits in v8_prof_polyfill.js
* Do not repeat RegExp creation in cycle. * Use sufficient string instead of RegExp in split(). PR-URL: #13709 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 9e2d85e commit d5bf137

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/internal/v8_prof_polyfill.js

Lines changed: 3 additions & 2 deletions

0 commit comments

Comments
 (0)