Commit 6a6c431
src: use persistent strings from node::Environment
Replace a few calls to FIXED_ONE_BYTE_STRING() with their persistent
counterparts from `node::Environment`. None of the calls are in hot
code paths but why create a new string when one already exists?
PR-URL: #11945
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>1 parent 41bec5c commit 6a6c431
2 files changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
726 | | - | |
| 725 | + | |
727 | 726 | | |
728 | 727 | | |
729 | 728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2055 | 2055 | | |
2056 | 2056 | | |
2057 | 2057 | | |
2058 | | - | |
2059 | | - | |
| 2058 | + | |
2060 | 2059 | | |
2061 | 2060 | | |
2062 | 2061 | | |
| |||
3255 | 3254 | | |
3256 | 3255 | | |
3257 | 3256 | | |
3258 | | - | |
| 3257 | + | |
3259 | 3258 | | |
3260 | 3259 | | |
3261 | 3260 | | |
| |||
5583 | 5582 | | |
5584 | 5583 | | |
5585 | 5584 | | |
5586 | | - | |
| 5585 | + | |
5587 | 5586 | | |
5588 | 5587 | | |
5589 | 5588 | | |
| |||
0 commit comments