mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 19:38:58 +00:00
* make our debug assertions work * install bun-webkit-debug * more progress * ok * progress... * more debug build stuff * ok * a * asdfghjkl * fix(runtime): fix bad assertion failure in JSBufferList * ok * stuff * upgrade webkit * Update src/bun.js/bindings/JSDOMWrapperCache.h Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * fix message for colin's changes * okay * fix cjs prototype * implement mainModule * i think this fixes it all --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#include "root.h"
|
|
#include "headers-handwritten.h"
|
|
|
|
#include "JavaScriptCore/JSCInlines.h"
|
|
#include "BunClientData.h"
|
|
#include <JavaScriptCore/JSInternalFieldObjectImpl.h>
|
|
|
|
namespace Bun {
|
|
using namespace JSC;
|
|
|
|
class JSNextTickQueue : public JSC::JSInternalFieldObjectImpl<3> {
|
|
public:
|
|
using Base = JSC::JSInternalFieldObjectImpl<3>;
|
|
|
|
template<typename, JSC::SubspaceAccess mode> static JSC::GCClient::IsoSubspace* subspaceFor(JSC::VM& vm);
|
|
|
|
JS_EXPORT_PRIVATE static JSNextTickQueue* create(VM&, Structure*);
|
|
static JSNextTickQueue* create(JSC::JSGlobalObject* globalObject);
|
|
static JSNextTickQueue* createWithInitialValues(VM&, Structure*);
|
|
static Structure* createStructure(VM&, JSGlobalObject*, JSValue);
|
|
|
|
static std::array<JSValue, numberOfInternalFields> initialValues()
|
|
{
|
|
return { {
|
|
jsNumber(-1),
|
|
jsUndefined(),
|
|
jsUndefined(),
|
|
} };
|
|
}
|
|
|
|
DECLARE_EXPORT_INFO;
|
|
DECLARE_VISIT_CHILDREN;
|
|
|
|
JSNextTickQueue(JSC::VM&, JSC::Structure*);
|
|
void finishCreation(JSC::VM&);
|
|
|
|
bool isEmpty();
|
|
void drain(JSC::VM& vm, JSC::JSGlobalObject* globalObject);
|
|
};
|
|
} |