diff options
author | 2023-07-13 01:41:56 -0700 | |
---|---|---|
committer | 2023-07-17 20:27:54 -0700 | |
commit | 802f9ccb5864e9e1cfee7c0aa5abffbb69d53fdc (patch) | |
tree | 21c7ce86cb2f8732140e38cf69c7e511450d776f /src/bun.js/bindings/JSMockFunction.cpp | |
parent | c676a64ce4f2ab3262ac0c3013403e34d1b24a52 (diff) | |
download | bun-802f9ccb5864e9e1cfee7c0aa5abffbb69d53fdc.tar.gz bun-802f9ccb5864e9e1cfee7c0aa5abffbb69d53fdc.tar.zst bun-802f9ccb5864e9e1cfee7c0aa5abffbb69d53fdc.zip |
wip!
Diffstat (limited to 'src/bun.js/bindings/JSMockFunction.cpp')
-rw-r--r-- | src/bun.js/bindings/JSMockFunction.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/bun.js/bindings/JSMockFunction.cpp b/src/bun.js/bindings/JSMockFunction.cpp index 3a84f0139..a8824725e 100644 --- a/src/bun.js/bindings/JSMockFunction.cpp +++ b/src/bun.js/bindings/JSMockFunction.cpp @@ -20,6 +20,7 @@ #include <JavaScriptCore/WeakMapImplInlines.h> #include <JavaScriptCore/FunctionPrototype.h> #include <JavaScriptCore/DateInstance.h> +#include <JavaScriptCore/JSInternalFieldObjectImplInlines.h> namespace Bun { @@ -1437,19 +1438,3 @@ JSC_DEFINE_HOST_FUNCTION(jsMockFunctionWithImplementation, (JSC::JSGlobalObject return JSC::JSValue::encode(jsUndefined()); } } // namespace Bun - -namespace JSC { - -template<unsigned passedNumberOfInternalFields> -template<typename Visitor> -void JSInternalFieldObjectImpl<passedNumberOfInternalFields>::visitChildrenImpl(JSCell* cell, Visitor& visitor) -{ - auto* thisObject = jsCast<JSInternalFieldObjectImpl*>(cell); - ASSERT_GC_OBJECT_INHERITS(thisObject, info()); - Base::visitChildren(thisObject, visitor); - visitor.appendValues(thisObject->m_internalFields, numberOfInternalFields); -} - -DEFINE_VISIT_CHILDREN_WITH_MODIFIER(template<unsigned passedNumberOfInternalFields>, JSInternalFieldObjectImpl<passedNumberOfInternalFields>); - -} // namespace JSC |