We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac2af88 commit 821c806Copy full SHA for 821c806
src/workerd/api/node/tests/als-gc-test.js
@@ -12,7 +12,7 @@ export const test = {
12
if (!storeValue) {
13
throw new Error(`Failed on attempt ${i}.`);
14
}
15
- for (let j = 0; j < 100000; j++) {
+ for (let j = 0; j < 1_000; j++) {
16
(() => Math.random())();
17
18
src/workerd/jsg/async-context.c++
@@ -186,5 +186,8 @@ v8::Local<v8::Object> AsyncContextFrame::getJSWrapper(Lock& js) {
186
return getJSWrapper(js.v8Isolate);
187
188
189
-void AsyncContextFrame::jsgVisitForGc(GcVisitor& visitor) {}
+void AsyncContextFrame::jsgVisitForGc(GcVisitor& visitor) {
190
+ // tracing will make the members weak and will allow
191
+ // them to be gc'd, which is not what we want.
192
+}
193
} // namespace workerd::jsg
0 commit comments