mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
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>
This commit is contained in:
@@ -59,7 +59,7 @@ static EncodedJSValue functionRequireResolve(JSC::JSGlobalObject* globalObject,
|
||||
JSC::JSValue moduleName = callFrame->argument(0);
|
||||
|
||||
auto doIt = [&](const WTF::String& fromStr) -> JSC::EncodedJSValue {
|
||||
ZigString from = Zig::toZigString(fromStr);
|
||||
BunString from = Bun::toString(fromStr);
|
||||
auto result = Bun__resolveSyncWithSource(globalObject, JSC::JSValue::encode(moduleName), &from, false);
|
||||
|
||||
if (!JSC::JSValue::decode(result).isString()) {
|
||||
|
||||
Reference in New Issue
Block a user