aboutsummaryrefslogtreecommitdiff
path: root/bench/react-hello-world/react-hello-world.jsx
diff options
context:
space:
mode:
authorGravatar Zilin Zhu <zhuzilinallen@gmail.com> 2022-08-17 20:22:09 +0800
committerGravatar GitHub <noreply@github.com> 2022-08-17 05:22:09 -0700
commit0aa3a0a5b04249f79b1b1bb1722ca2a38313c0d4 (patch)
tree667da145380e10066064b920b5b2d3672f407f9d /bench/react-hello-world/react-hello-world.jsx
parent77b449856d97a1965dc0d5b331ab5fe5b618e237 (diff)
downloadbun-0aa3a0a5b04249f79b1b1bb1722ca2a38313c0d4.tar.gz
bun-0aa3a0a5b04249f79b1b1bb1722ca2a38313c0d4.tar.zst
bun-0aa3a0a5b04249f79b1b1bb1722ca2a38313c0d4.zip
Fix server segfault by making controller not early GC'ed (#1090)
* Fix http server segfault by making controller not get GC'ed * fix format
Diffstat (limited to 'bench/react-hello-world/react-hello-world.jsx')
-rw-r--r--bench/react-hello-world/react-hello-world.jsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/bench/react-hello-world/react-hello-world.jsx b/bench/react-hello-world/react-hello-world.jsx
index 4c3fc5967..9391963c3 100644
--- a/bench/react-hello-world/react-hello-world.jsx
+++ b/bench/react-hello-world/react-hello-world.jsx
@@ -1,7 +1,4 @@
-// import { renderToReadableStream } from "react-dom/server.browser";
-var { renderToReadableStream } = import.meta.require(
- "../../test/bun.js/reactdom-bun.js"
-);
+import { renderToReadableStream } from "react-dom/server.browser";
const headers = {
headers: {