diff options
author | 2023-06-11 05:26:37 -0700 | |
---|---|---|
committer | 2023-06-11 05:26:37 -0700 | |
commit | ef65f3c305e989bd7d7fe6f0e73822bdbe0e91dd (patch) | |
tree | 208a5f55d885c95afe40366bbe7b0e6d4c5f7859 /src/bun.js/bindings/bindings.cpp | |
parent | 02eafd5019150357012ebb7a39f1c264ba73599e (diff) | |
download | bun-ef65f3c305e989bd7d7fe6f0e73822bdbe0e91dd.tar.gz bun-ef65f3c305e989bd7d7fe6f0e73822bdbe0e91dd.tar.zst bun-ef65f3c305e989bd7d7fe6f0e73822bdbe0e91dd.zip |
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>
Diffstat (limited to 'src/bun.js/bindings/bindings.cpp')
-rw-r--r-- | src/bun.js/bindings/bindings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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()); |