aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/modules/StringDecoderModule.h
blob: 9beff4f3b74d3caa52b53b12617167bcbd1d49dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "../bindings/ZigGlobalObject.h"
#include "../bindings/JSStringDecoder.h"
#include "JavaScriptCore/JSGlobalObject.h"

namespace Zig {

inline void generateStringDecoderSourceCode(JSC::JSGlobalObject* lexicalGlobalObject, JSC::Identifier moduleKey, Vector<JSC::Identifier, 4>& exportNames, JSC::MarkedArgumentBuffer& exportValues) {
    JSC::VM& vm = lexicalGlobalObject->vm();
    GlobalObject* globalObject = reinterpret_cast<GlobalObject*>(lexicalGlobalObject);

    exportNames.append(JSC::Identifier::fromString(vm, "StringDecoder"_s));
    exportValues.append(globalObject->JSStringDecoder());
}

}