5 #include "src/extensions/gc-extension.h" 7 #include "src/base/platform/platform.h" 20 args.GetIsolate()->RequestGarbageCollectionForTesting(
21 args[0]->BooleanValue(args.GetIsolate())
22 ? v8::Isolate::kMinorGarbageCollection
23 : v8::Isolate::kFullGarbageCollection);
static Local< FunctionTemplate > New(Isolate *isolate, FunctionCallback callback=nullptr, Local< Value > data=Local< Value >(), Local< Signature > signature=Local< Signature >(), int length=0, ConstructorBehavior behavior=ConstructorBehavior::kAllow, SideEffectType side_effect_type=SideEffectType::kHasSideEffect)