Skip to content

Commit

Permalink
Merge pull request #2401 from cloudflare/maizatskyi/2024-07-16-get-pr…
Browse files Browse the repository at this point in the history
…ototype-v2
  • Loading branch information
jasnell authored Jul 16, 2024
2 parents b94bad0 + 9618fd5 commit 6ac4ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerd/jsg/jsvalue.h
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class JsObject final : public JsBase<v8::Object, JsObject> {
// 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<v8::Object, JsObject>::JsBase;

Expand Down

0 comments on commit 6ac4ba0

Please sign in to comment.