Skip to content

Commit ffc41d5

Browse files
committed
moar
1 parent c10e692 commit ffc41d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export function is_primitive(thing) {
2828
return Object(thing) !== thing;
2929
}
3030

31-
const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(Object.prototype)
31+
const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(
32+
Object.prototype
33+
)
3234
.sort()
3335
.join('\0');
3436

@@ -93,7 +95,5 @@ export function stringify_string(str) {
9395
}
9496
}
9597

96-
result += str.slice(last_pos);
97-
98-
return `"${result}"`;
98+
return `"${last_pos === 0 ? str : result + str.slice(last_pos)}"`;
9999
}

0 commit comments

Comments
 (0)