We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1405ee6 commit 709d49fCopy full SHA for 709d49f
src/toUSVString-default.ts
@@ -1,11 +1,12 @@
1
+import StringPrototypeToWellFormed from "./lib/StringPrototypeToWellFormed.js";
2
+
3
let toUSVString: (s: string) => string;
4
// @ts-ignore
5
if (String.prototype.toWellFormed) {
6
7
toUSVString = Object.call.bind(String.prototype.toWellFormed);
8
} else {
- toUSVString =
- require("./lib/StringPrototypeToWellFormed.js") as typeof import("./lib/StringPrototypeToWellFormed.js");
9
+ toUSVString = StringPrototypeToWellFormed;
10
}
11
12
export = toUSVString;
0 commit comments