Add run builtin and unignore ScriptTest toString/getter

This commit is contained in:
Sergey Chernov 2026-01-30 20:26:53 +03:00
parent 348052991c
commit f9c29e742a
2 changed files with 6 additions and 7 deletions

View File

@ -343,6 +343,9 @@ class Script(
this.trace(args.getOrNull(0)?.toString() ?: "") this.trace(args.getOrNull(0)?.toString() ?: "")
ObjVoid ObjVoid
} }
addFn("run") {
requireOnlyArg<Statement>().execute(this)
}
addVoidFn("delay") { addVoidFn("delay") {
val a = args.firstAndOnly() val a = args.firstAndOnly()

View File

@ -3608,7 +3608,7 @@ class ScriptTest {
) )
} }
@Ignore("incremental enable") @Ignore("incremental enable: run helper not resolved in new compiler")
@Test @Test
fun testElvisAndThrow2() = runTest { fun testElvisAndThrow2() = runTest {
eval( eval(
@ -3621,7 +3621,6 @@ class ScriptTest {
) )
} }
@Ignore("incremental enable")
@Test @Test
fun testElvisAndRunThrow() = runTest { fun testElvisAndRunThrow() = runTest {
eval( eval(
@ -3690,7 +3689,6 @@ class ScriptTest {
) )
} }
@Ignore("incremental enable")
@Test @Test
fun testOverridenListToString() = runTest { fun testOverridenListToString() = runTest {
eval( eval(
@ -4555,7 +4553,6 @@ class ScriptTest {
) )
} }
@Ignore("incremental enable")
@Test @Test
fun testCustomToStringBug() = runTest { fun testCustomToStringBug() = runTest {
eval( eval(
@ -4938,7 +4935,7 @@ class ScriptTest {
) )
} }
@Ignore("incremental enable") @Ignore("incremental enable: run helper not resolved in new compiler")
@Test @Test
fun realWorldCaptureProblem() = runTest { fun realWorldCaptureProblem() = runTest {
eval( eval(
@ -4965,7 +4962,7 @@ class ScriptTest {
) )
} }
@Ignore("incremental enable") @Ignore("incremental enable: lazy delegate not resolved in new compiler")
@Test @Test
fun testLazyLocals() = runTest() { fun testLazyLocals() = runTest() {
eval( eval(
@ -4983,7 +4980,6 @@ class ScriptTest {
) )
} }
@Ignore("incremental enable")
@Test @Test
fun testGetterLocals() = runTest() { fun testGetterLocals() = runTest() {
eval( eval(