From 9618fd57497ba42d837c7025d028ee8a4cb06242 Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Tue, 16 Jul 2024 09:01:05 -0700 Subject: [PATCH] switch to GetPrototypeV2() Should be a noop for us, since we never call GetPrototype() on an object that would be expected to be the context object --- src/workerd/jsg/jsvalue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workerd/jsg/jsvalue.h b/src/workerd/jsg/jsvalue.h index 7ccbc9bf9b2..94d4309003c 100644 --- a/src/workerd/jsg/jsvalue.h +++ b/src/workerd/jsg/jsvalue.h @@ -359,7 +359,7 @@ class JsObject final : public JsBase { // Note that when called on a class constructor, this does NOT return `.prototype`, it still // returns `.__proto__`. Usefully, though, a class constructor's `__proto__` is always the // parent class's constructor. - inline JsValue getPrototype() { return JsValue(inner->GetPrototype()); } + inline JsValue getPrototype() { return JsValue(inner->GetPrototypeV2()); } using JsBase::JsBase;