mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
18 lines
366 B
C++
18 lines
366 B
C++
#include "../bindings/JSStringDecoder.h"
|
|
#include "../bindings/ZigGlobalObject.h"
|
|
#include <JavaScriptCore/JSGlobalObject.h>
|
|
|
|
namespace Zig {
|
|
|
|
DEFINE_NATIVE_MODULE(NodeStringDecoder)
|
|
{
|
|
INIT_NATIVE_MODULE(1);
|
|
|
|
put(JSC::Identifier::fromString(vm, "StringDecoder"_s),
|
|
globalObject->JSStringDecoder());
|
|
|
|
RETURN_NATIVE_MODULE();
|
|
}
|
|
|
|
} // namespace Zig
|