From ef65f3c305e989bd7d7fe6f0e73822bdbe0e91dd Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 11 Jun 2023 05:26:37 -0700 Subject: Support using `WTF::StringImpl` from Zig (#3279) * Fix `make headers` * [JS parser] Fix bug with printing non-ascii import paths in ascii mode * Introduce `bun.String` * Add test for non-ascii imports & entry points * Add comment * Fix build issue * Support HTTP server * Make it print the same --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- src/bun.js/bindings/bindings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bun.js/bindings/bindings.cpp') diff --git a/src/bun.js/bindings/bindings.cpp b/src/bun.js/bindings/bindings.cpp index 8aa01abb3..e64162b34 100644 --- a/src/bun.js/bindings/bindings.cpp +++ b/src/bun.js/bindings/bindings.cpp @@ -2326,10 +2326,10 @@ static JSC::EncodedJSValue resolverFunctionCallback(JSC::JSGlobalObject* globalO JSC__JSInternalPromise* JSC__JSModuleLoader__loadAndEvaluateModule(JSC__JSGlobalObject* globalObject, - const ZigString* arg1) + const BunString* arg1) { globalObject->vm().drainMicrotasks(); - auto name = Zig::toString(*arg1); + auto name = Bun::toWTFString(*arg1); name.impl()->ref(); auto* promise = JSC::loadAndEvaluateModule(globalObject, name, JSC::jsUndefined(), JSC::jsUndefined()); -- cgit v1.2.3