Skip to content

Commit

Permalink
switch to GetPrototypeV2()
Browse files Browse the repository at this point in the history
Should be a noop for us, since we never call GetPrototype() on an
object that would be expected to be the context object
  • Loading branch information
mikea committed Jul 16, 2024
1 parent b94bad0 commit 9618fd5
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 9618fd5

Please sign in to comment.