diff options
author | 2022-02-24 00:15:44 -0800 | |
---|---|---|
committer | 2022-02-24 00:15:44 -0800 | |
commit | b37cb738021fa87fffa2bee50329c1ae55d79f4d (patch) | |
tree | 03a430a048349a590217c7a07cb024a0d596aa18 /src/javascript/jsc/bindings/Path.h | |
parent | 806e406b675f2827cec8c301c6bac3bd40211908 (diff) | |
download | bun-b37cb738021fa87fffa2bee50329c1ae55d79f4d.tar.gz bun-b37cb738021fa87fffa2bee50329c1ae55d79f4d.tar.zst bun-b37cb738021fa87fffa2bee50329c1ae55d79f4d.zip |
Use a JSFinalobject for Path
Diffstat (limited to '')
-rw-r--r-- | src/javascript/jsc/bindings/Path.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/javascript/jsc/bindings/Path.h b/src/javascript/jsc/bindings/Path.h index d229fedc6..e69de29bb 100644 --- a/src/javascript/jsc/bindings/Path.h +++ b/src/javascript/jsc/bindings/Path.h @@ -1,49 +0,0 @@ -#pragma once - -#include "BunBuiltinNames.h" -#include "BunClientData.h" -#include "root.h" - -namespace Zig { - -using namespace JSC; - -class Path : public JSC::JSNonFinalObject { - using Base = JSC::JSNonFinalObject; - -public: - Path(JSC::VM& vm, JSC::Structure* structure, bool isWindows_) - : Base(vm, structure) - { - isWindows = isWindows_; - } - - 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 Path* create(JSC::VM& vm, bool isWindows, JSC::Structure* structure) - { - Path* accessor = new (NotNull, JSC::allocateCell<Path>(vm)) Path(vm, structure, isWindows); - - accessor->finishCreation(vm); - return accessor; - } - bool isWindows = false; - - void finishCreation(JSC::VM& vm); -}; - -} // namespace Zig
\ No newline at end of file |