diff options
Diffstat (limited to 'test/bun.js')
-rw-r--r-- | test/bun.js/react-dom-server.bun.js (renamed from test/bun.js/reactdom-bun.js) | 4 | ||||
-rw-r--r-- | test/bun.js/react-dom.test.tsx | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/test/bun.js/reactdom-bun.js b/test/bun.js/react-dom-server.bun.js index c489314fb..fc578c8a9 100644 --- a/test/bun.js/reactdom-bun.js +++ b/test/bun.js/react-dom-server.bun.js @@ -7,7 +7,6 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -const escapeHTML = Bun.escapeHTML; var aa = require("react"); function k(a) { for ( @@ -200,8 +199,7 @@ Object.keys(z).forEach(function (a) { }); var ma = /["'&<>]/; function A(a) { - if ("boolean" === typeof a || "number" === typeof a) return "" + a; - return escapeHTML(a); + return Bun.escapeHTML(a); } var na = /([A-Z])/g, oa = /^ms-/, diff --git a/test/bun.js/react-dom.test.tsx b/test/bun.js/react-dom.test.tsx index d204e88e0..42f4c7631 100644 --- a/test/bun.js/react-dom.test.tsx +++ b/test/bun.js/react-dom.test.tsx @@ -10,7 +10,7 @@ import { heapStats } from "bun:jsc"; import { describe, expect, it } from "bun:test"; import { renderToReadableStream as renderToReadableStreamBrowser } from "react-dom/server.browser"; import { gc } from "./gc"; -import { renderToReadableStream as renderToReadableStreamBun } from "./reactdom-bun"; +import { renderToReadableStream as renderToReadableStreamBun } from "./react-dom-server.bun"; import React from "react"; Object.defineProperty(renderToReadableStreamBrowser, "name", { |