mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 14:22:01 +00:00
Upgrade WebKit
This commit is contained in:
50
src/javascript/jsc/bindings/napi_external.cpp
Normal file
50
src/javascript/jsc/bindings/napi_external.cpp
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
|
||||
// #pragma once
|
||||
|
||||
// #include "root.h"
|
||||
|
||||
// #include "BunBuiltinNames.h"
|
||||
// #include "BunClientData.h"
|
||||
|
||||
// namespace Zig {
|
||||
|
||||
// using namespace JSC;
|
||||
|
||||
// class NapiExternal : public JSC::JSNonFinalObject {
|
||||
// using Base = JSC::JSNonFinalObject;
|
||||
|
||||
// public:
|
||||
// NapiExternal(JSC::VM& vm, JSC::Structure* structure)
|
||||
// : Base(vm, structure)
|
||||
// {
|
||||
// }
|
||||
|
||||
// DECLARE_INFO;
|
||||
|
||||
// static constexpr unsigned StructureFlags = Base::StructureFlags;
|
||||
|
||||
// template<typename CellType, SubspaceAccess> static GCClient::IsoSubspace* subspaceFor(VM& vm)
|
||||
// {
|
||||
// return &vm.plainObjectSpace();
|
||||
// }
|
||||
|
||||
// static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject,
|
||||
// JSC::JSValue prototype)
|
||||
// {
|
||||
// return JSC::Structure::create(vm, globalObject, prototype,
|
||||
// JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
|
||||
// }
|
||||
|
||||
// static NapiExternal* create(JSC::VM& vm, JSC::Structure* structure)
|
||||
// {
|
||||
// NapiExternal* accessor = new (NotNull, JSC::allocateCell<NapiExternal>(vm)) NapiExternal(vm, structure);
|
||||
// accessor->finishCreation(vm);
|
||||
// return accessor;
|
||||
// }
|
||||
|
||||
// void finishCreation(JSC::VM& vm);
|
||||
// void* m_value;
|
||||
// };
|
||||
|
||||
// } // namespace Zig
|
||||
Reference in New Issue
Block a user