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 c10e692 commit ffc41d5Copy full SHA for ffc41d5
src/utils.js
@@ -28,7 +28,9 @@ export function is_primitive(thing) {
28
return Object(thing) !== thing;
29
}
30
31
-const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(Object.prototype)
+const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(
32
+ Object.prototype
33
+)
34
.sort()
35
.join('\0');
36
@@ -93,7 +95,5 @@ export function stringify_string(str) {
93
95
94
96
97
- result += str.slice(last_pos);
-
98
- return `"${result}"`;
+ return `"${last_pos === 0 ? str : result + str.slice(last_pos)}"`;
99
0 commit comments