Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/workerd/jsg/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ struct GetterCallback;
liftKj(info, [&]() { \
auto isolate = info.GetIsolate(); \
auto context = isolate->GetCurrentContext(); \
auto obj = info.This(); \
auto obj = info.HolderV2(); \
auto& js = Lock::from(isolate); \
auto& wrapper = TypeWrapper::from(isolate); \
/* V8 no longer supports AccessorSignature, so we must manually verify `this`'s type. */ \
Expand Down Expand Up @@ -682,7 +682,7 @@ struct GetterCallback;
auto isolate = info.GetIsolate(); \
auto context = isolate->GetCurrentContext(); \
auto& js = Lock::from(isolate); \
auto obj = info.This(); \
auto obj = info.HolderV2(); \
auto& wrapper = TypeWrapper::from(isolate); \
/* V8 no longer supports AccessorSignature, so we must manually verify `this`'s type. */ \
if (!isContext && \
Expand Down Expand Up @@ -880,7 +880,7 @@ struct SetterCallback<TypeWrapper, methodName, void (T::*)(Arg), method, isConte
auto isolate = info.GetIsolate();
auto context = isolate->GetCurrentContext();
auto& js = Lock::from(isolate);
auto obj = info.This();
auto obj = info.HolderV2();
auto& wrapper = TypeWrapper::from(isolate);
// V8 no longer supports AccessorSignature, so we must manually verify `this`'s type.
if (!isContext && !wrapper.getTemplate(isolate, static_cast<T*>(nullptr))->HasInstance(obj)) {
Expand All @@ -906,7 +906,7 @@ struct SetterCallback<TypeWrapper, methodName, void (T::*)(Lock&, Arg), method,
liftKj(info, [&]() {
auto isolate = info.GetIsolate();
auto context = isolate->GetCurrentContext();
auto obj = info.This();
auto obj = info.HolderV2();
auto& wrapper = TypeWrapper::from(isolate);
// V8 no longer supports AccessorSignature, so we must manually verify `this`'s type.
if (!isContext && !wrapper.getTemplate(isolate, static_cast<T*>(nullptr))->HasInstance(obj)) {
Expand Down Expand Up @@ -1193,7 +1193,7 @@ struct WildcardPropertyCallbacks<TypeWrapper,
liftKj(info, [&]() -> v8::Local<v8::Value> {
auto isolate = info.GetIsolate();
auto context = isolate->GetCurrentContext();
auto obj = info.This();
auto obj = info.HolderV2();
auto& wrapper = TypeWrapper::from(isolate);
if (!wrapper.getTemplate(isolate, static_cast<T*>(nullptr))->HasInstance(obj)) {
throwTypeError(isolate, kIllegalInvocation);
Expand Down
Loading