diff options
author | 2022-02-21 04:13:37 -0800 | |
---|---|---|
committer | 2022-02-21 04:13:37 -0800 | |
commit | 4f2fc299a9bc35ac1b74f084f977c66243dacaed (patch) | |
tree | cf0b9ef4b57d3559f2e729865b6be083a442d05e /src/javascript/jsc/bindings/Path.h | |
parent | efb4baacdfb39d453203fe13f36fbbc884078abf (diff) | |
download | bun-4f2fc299a9bc35ac1b74f084f977c66243dacaed.tar.gz bun-4f2fc299a9bc35ac1b74f084f977c66243dacaed.tar.zst bun-4f2fc299a9bc35ac1b74f084f977c66243dacaed.zip |
upgrade JSC
Diffstat (limited to 'src/javascript/jsc/bindings/Path.h')
-rw-r--r-- | src/javascript/jsc/bindings/Path.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/javascript/jsc/bindings/Path.h b/src/javascript/jsc/bindings/Path.h index 546a542a6..1c1c7817b 100644 --- a/src/javascript/jsc/bindings/Path.h +++ b/src/javascript/jsc/bindings/Path.h @@ -6,6 +6,8 @@ namespace Zig { +using namespace JSC; + class Path : public JSC::JSNonFinalObject { using Base = JSC::JSNonFinalObject; @@ -18,9 +20,8 @@ class Path : public JSC::JSNonFinalObject { static constexpr unsigned StructureFlags = Base::StructureFlags; - template <typename CellType, JSC::SubspaceAccess> - static JSC::CompleteSubspace *subspaceFor(JSC::VM &vm) { - return &vm.cellSpace; + template <typename CellType, SubspaceAccess> static GCClient::IsoSubspace *subspaceFor(VM &vm) { + return &vm.plainObjectSpace(); } static JSC::Structure *createStructure(JSC::VM &vm, JSC::JSGlobalObject *globalObject, @@ -30,7 +31,7 @@ class Path : public JSC::JSNonFinalObject { } static Path *create(JSC::VM &vm, bool isWindows, JSC::Structure *structure) { - Path *accessor = new (NotNull, JSC::allocateCell<Path>(vm.heap)) Path(vm, structure, isWindows); + Path *accessor = new (NotNull, JSC::allocateCell<Path>(vm)) Path(vm, structure, isWindows); accessor->finishCreation(vm); return accessor; |