Remove implementation specific access to _ from test

Operator `new` is already tested with String class
This commit is contained in:
Svyatoslav Kuzmich
2021-02-23 00:25:57 +03:00
parent 5affd9d2f9
commit f479ac5c3a
-4
View File
@@ -1,8 +1,5 @@
// EXPECTED_REACHABLE_NODES: 1290
@JsExport
data class A(val value: Int)
fun box(): String {
assertEquals(-1, js("-1"), "- (unary)")
assertEquals(1, js("+'1'"), "+ (unary)")
@@ -62,7 +59,6 @@ fun box(): String {
assertEquals(undefined, js("(void 0)"), "void")
assertEquals(true, js("'key' in {'key': 10}"), "in")
assertEquals("string", js("typeof 'str'"), "typeof")
assertEquals(A(2), js("new _.A(2)"), "new")
assertEquals(true, js("new String('str') instanceof String"), "instanceof")
var s: Any = js("({key: 10})")