aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/Strong.h
blob: f39d1c6115c64c8a7090a474d2bb82c38e07841d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "root.h"
#include "JavaScriptCore/Strong.h"

namespace Bun {

// We tried to pool these
// But it was very complicated
class StrongRef {
    WTF_MAKE_ISO_ALLOCATED(StrongRef);

public:
    StrongRef(JSC::VM& vm, JSC::JSValue value)
        : m_cell(vm, value)
    {
    }

    StrongRef()
        : m_cell()
    {
    }

    JSC::Strong<JSC::Unknown> m_cell;
};

}
td> 2023-10-12WIPGravatar Colin McDonnell 2-24/+106 2023-10-12Improve helptextGravatar Colin McDonnell 1-55/+83 2023-10-12WIPGravatar Colin McDonnell 3-49/+147 2023-10-12WIPGravatar Colin McDonnell 2-0/+19 2023-10-12fix install testGravatar Dylan Conway 2-6/+8 2023-10-12fix editing package json when adding github dependency (#6432)Gravatar Dylan Conway 5-14/+146 2023-10-12Update installation.mdGravatar Colin McDonnell 1-8/+14 2023-10-12Update installation.mdGravatar Colin McDonnell 1-3/+3 2023-10-12fix(install): re-evaluate overrides when removedbun-v1.0.6Gravatar dave caruso 3-3/+45 2023-10-12chore: add missing ending quote (#6436)Gravatar Luna 1-1/+1 2023-10-12feat(install): support npm overrides/yarn resolutions, one level deep only (#...Gravatar dave caruso 7-31/+640 2023-10-11fix #6416 (#6430)Gravatar Dylan Conway 2-1/+132 2023-10-11Bump WebKitGravatar Jarred Sumner 9-29/+29 2023-10-11Bump!Gravatar Jarred Sumner 1-1/+1 2023-10-11Update JSCUSocketsLoopIntegration.cppGravatar Dylan Conway 1-2/+2 2023-10-11Update installation.mdGravatar Colin McDonnell 1-10/+7