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;