diff --git a/src/workerd/jsg/resource.h b/src/workerd/jsg/resource.h index a425c0cfe00..ab9ff816a06 100644 --- a/src/workerd/jsg/resource.h +++ b/src/workerd/jsg/resource.h @@ -383,7 +383,7 @@ struct GetterCallback; auto obj = info.This(); \ auto& wrapper = TypeWrapper::from(isolate); \ /* V8 no longer supports AccessorSignature, so we must manually verify `this`'s type. */\ - if (!isContext && !wrapper.template getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { \ + if (!isContext && !wrapper.getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { \ throwTypeError(isolate, kIllegalInvocation); \ } \ auto& self = extractInternalPointer(context, obj); \ @@ -409,7 +409,7 @@ struct GetterCallback; auto obj = info.This(); \ auto& wrapper = TypeWrapper::from(isolate); \ /* V8 no longer supports AccessorSignature, so we must manually verify `this`'s type. */\ - if (!isContext && !wrapper.template getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { \ + if (!isContext && !wrapper.getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { \ throwTypeError(isolate, kIllegalInvocation); \ } \ auto& self = extractInternalPointer(context, obj); \ @@ -451,7 +451,7 @@ struct PropertyGetterCallback; auto obj = info.This(); \ auto& wrapper = TypeWrapper::from(isolate); \ /* V8 no longer supports AccessorSignature, so we must manually verify `this`'s type. */\ - if (!isContext && !wrapper.template getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { \ + if (!isContext && !wrapper.getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { \ throwTypeError(isolate, kIllegalInvocation); \ } \ auto& self = extractInternalPointer(context, obj); \ @@ -477,7 +477,7 @@ struct PropertyGetterCallback; auto obj = info.This(); \ auto& wrapper = TypeWrapper::from(isolate); \ /* V8 no longer supports AccessorSignature, so we must manually verify `this`'s type. */\ - if (!isContext && !wrapper.template getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { \ + if (!isContext && !wrapper.getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { \ throwTypeError(isolate, kIllegalInvocation); \ } \ auto& self = extractInternalPointer(context, obj); \ @@ -516,7 +516,7 @@ struct SetterCallbackHasInstance(obj)) { + if (!isContext && !wrapper.getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { throwTypeError(isolate, kIllegalInvocation); } auto& self = extractInternalPointer(context, obj); @@ -539,7 +539,7 @@ struct SetterCallbackHasInstance(obj)) { + if (!isContext && !wrapper.getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { throwTypeError(isolate, kIllegalInvocation); } auto& self = extractInternalPointer(context, obj); @@ -563,7 +563,7 @@ struct PropertySetterCallbackHasInstance(obj)) { + if (!isContext && !wrapper.getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { throwTypeError(isolate, kIllegalInvocation); } auto& self = extractInternalPointer(context, obj); @@ -585,7 +585,7 @@ struct PropertySetterCallbackHasInstance(obj)) { + if (!isContext && !wrapper.getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { throwTypeError(isolate, kIllegalInvocation); } auto& self = extractInternalPointer(context, obj); @@ -760,7 +760,7 @@ struct WildcardPropertyCallbacks< auto context = isolate->GetCurrentContext(); auto obj = info.This(); auto& wrapper = TypeWrapper::from(isolate); - if (!wrapper.template getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { + if (!wrapper.getTemplate(isolate, (T*)nullptr)->HasInstance(obj)) { throwTypeError(isolate, kIllegalInvocation); } auto& self = extractInternalPointer(context, obj); diff --git a/src/workerd/jsg/setup.h b/src/workerd/jsg/setup.h index ffc577a4240..60049eb4a51 100644 --- a/src/workerd/jsg/setup.h +++ b/src/workerd/jsg/setup.h @@ -485,7 +485,7 @@ class Isolate: public IsolateBase { jsg::JsObject getConstructor(v8::Local context) { v8::EscapableHandleScope scope(v8Isolate); v8::Local tpl = - jsgIsolate.wrapper->template getTemplate(v8Isolate, (T*)nullptr); + jsgIsolate.wrapper->getTemplate(v8Isolate, (T*)nullptr); v8::Local prototype = check(tpl->GetFunction(context)); return jsg::JsObject(scope.Escape(prototype)); }