Skip to content

Commit 5cea539

Browse files
committed
fix: escape @discordjs/* in KDoc and fix instance check warning
1 parent 0e5d19d commit 5cea539

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/graalvm-js/src/main/kotlin/elide/runtime/lang/javascript/PackageExportsResolver.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,8 @@ internal object PackageExportsResolver {
251251
return try {
252252
JSObject.enumerableOwnNames(obj).mapNotNull { key ->
253253
when (key) {
254-
is String -> key
255254
is com.oracle.truffle.api.strings.TruffleString -> key.toJavaStringUncached()
256-
else -> null
255+
else -> key?.toString()
257256
}
258257
}
259258
} catch (e: Exception) {

packages/graalvm/src/test/kotlin/elide/runtime/gvm/js/vfs/JsPackageExportsTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ import elide.util.UUID
138138
/**
139139
* Test: Import from a package with nested conditional exports (the main fix).
140140
*
141-
* This is the pattern used by @discordjs/* packages that caused the original issue.
141+
* This is the pattern used by `@discordjs/*` packages that caused the original issue.
142142
*
143143
* package.json:
144144
* {

0 commit comments

Comments
 (0)