[K/JS] Add VOID optimization on object properties + align with the optimization the JS Plain Object plugin
This commit is contained in:
@@ -16,7 +16,7 @@ fun box(): String {
|
||||
if (user.age != 10) return "Fail: problem with `age` property"
|
||||
|
||||
val json = js("JSON.stringify(user)")
|
||||
if (json != "{\"email\":null,\"age\":10,\"name\":\"Name\"}") return "Fail: got the next json: $json"
|
||||
if (json != "{\"age\":10,\"name\":\"Name\"}") return "Fail: got the next json: $json"
|
||||
|
||||
val withEmail = User(name = "Name", age = 10, email = "test@test")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user