diff options
author | 2022-05-08 01:12:13 -0700 | |
---|---|---|
committer | 2022-05-08 01:12:13 -0700 | |
commit | 97cceb47b9fb14fbf8cb45a28038934b6416e8ef (patch) | |
tree | 250c430effeff27b5d37070f7c647bd1bfd7477b /src/javascript/jsc/bindings/napi_external.cpp | |
parent | 94637711b9f558576ffebe2f5dd834dc05a95f7b (diff) | |
download | bun-97cceb47b9fb14fbf8cb45a28038934b6416e8ef.tar.gz bun-97cceb47b9fb14fbf8cb45a28038934b6416e8ef.tar.zst bun-97cceb47b9fb14fbf8cb45a28038934b6416e8ef.zip |
Upgrade WebKit
Diffstat (limited to 'src/javascript/jsc/bindings/napi_external.cpp')
-rw-r--r-- | src/javascript/jsc/bindings/napi_external.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/javascript/jsc/bindings/napi_external.cpp b/src/javascript/jsc/bindings/napi_external.cpp new file mode 100644 index 000000000..15e46aa97 --- /dev/null +++ b/src/javascript/jsc/bindings/napi_external.cpp @@ -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
\ No newline at end of file |