Skip to content

Commit 91ac4fd

Browse files
authored
Merge pull request #3147 from cloudflare/yagiz/deprecated-usage-get-creation-context
use non-deprecated GetCreationContext()
2 parents cbe7864 + 59083ce commit 91ac4fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/workerd/io/worker.c++

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ kj::Maybe<jsg::JsObject> tryResolveMainModule(jsg::Lock& js,
15341534
// The V8 module API is weird. Only the first call to Evaluate() will evaluate the
15351535
// module, even if subsequent calls pass a different context. Verify that we didn't
15361536
// switch contexts.
1537-
KJ_ASSERT(jsg::check(ns->GetCreationContext()) == js.v8Context(),
1537+
KJ_ASSERT(jsg::check(ns->GetCreationContext(js.v8Isolate)) == js.v8Context(),
15381538
"module was originally instantiated in a different context");
15391539

15401540
return jsg::JsObject(ns);

0 commit comments

Comments
 (0)