Skip to content

Commit

Permalink
Abort. Immutable JSO interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Oct 9, 2024
1 parent 8fae8fa commit ab04ec7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/karakum/browser/Abortable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ external interface Abortable {
/**
* When provided the corresponding `AbortController` can be used to cancel an asynchronous action.
*/
var signal: AbortSignal?
val signal: AbortSignal?
}
""".trimIndent()

Expand Down
2 changes: 0 additions & 2 deletions buildSrc/src/main/kotlin/karakum/browser/Html.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1179,8 +1179,6 @@ internal fun convertInterface(
!declaration.startsWith("interface ") -> ""
"= definedExternally" in members -> ""

name.endsWith("Options") -> "@JsPlainObject"

IDLRegistry.isPlainObjectInterface(name) -> {
when (name) {
"QueuingStrategy",
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/karakum/browser/IDL.kt
Original file line number Diff line number Diff line change
Expand Up @@ -345,5 +345,5 @@ internal object IDLRegistry {
fun isPlainObjectInterface(
name: String,
): Boolean =
name in plainObjectInterfaces
name in plainObjectInterfaces || name.endsWith("Options")
}

0 comments on commit ab04ec7

Please sign in to comment.