From b37cb738021fa87fffa2bee50329c1ae55d79f4d Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 24 Feb 2022 00:15:44 -0800 Subject: Use a JSFinalobject for Path --- src/javascript/jsc/bindings/Path.h | 49 -------------------------------------- 1 file changed, 49 deletions(-) (limited to 'src/javascript/jsc/bindings/Path.h') 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 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(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 -- cgit v1.2.3