Skip to content

Commit f049360

Browse files
committed
fixup! src: cache urlpattern properties
1 parent 92bd6b0 commit f049360

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/update-wpt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
SUBSYSTEM: ${{ matrix.subsystem }}
6969

7070
- name: Open or update PR for the subsystem update
71-
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
71+
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5 # v1.1.0
7272
with:
7373
branch: actions/update-wpt-${{ matrix.subsystem }}
7474
author: Node.js GitHub Bot <[email protected]>

src/node_url_pattern.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ URLPattern::URLPattern(Environment* env,
168168

169169
void URLPattern::MemoryInfo(MemoryTracker* tracker) const {
170170
tracker->TraitTrackInline(url_pattern_, "url_pattern");
171+
#define URL_PATTERN_CACHED_VALUES(_, lowercase) \
172+
tracker->TrackField(#lowercase, lowercase);
173+
URL_PATTERN_COMPONENTS(URL_PATTERN_CACHED_VALUES)
174+
#undef URL_PATTERN_CACHED_VALUES
171175
}
172176

173177
void URLPattern::New(const FunctionCallbackInfo<Value>& args) {

0 commit comments

Comments
 (0)