[Wasm] Run wasm test using all available VMs: V8 & SpiderMonkey for now

Also, add a new directive, `WASM_FAILS_IN`, to specify VMs where a test is expected to fail for now.

#KT-56166 Fixed
This commit is contained in:
Zalim Bashorov
2023-01-27 02:27:09 +01:00
parent 885381dd63
commit b02279de14
16 changed files with 89 additions and 27 deletions
@@ -1,3 +1,4 @@
// WASM_FAILS_IN: SM
// FILE: defaultValues.js
function foo(x1 = "d1", x2 = "d2", x3 = "d3", x4 = "d4", x5 = "d5") {
return `${x1} ${x2} ${x3} ${x4} ${x5}`;
@@ -1,4 +1,5 @@
// WITH_STDLIB
// WASM_FAILS_IN: SM
// FILE: externals.js
const primitives1 = [3.14, "Test string 1", true, Symbol("symbol"), 131283889534859707199254740992n];
@@ -1,3 +1,4 @@
// WASM_FAILS_IN: SM
// FILE: externals.js
function createObject() {
return {
@@ -1,5 +1,6 @@
// Char issues
// IGNORE_BACKEND: JS_IR
// WASM_FAILS_IN: SM
// MODULE: main
// FILE: externals.js
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JS_IR, JS
// WASM_FAILS_IN: SM
// MODULE: main
// FILE: externals.kt
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JS_IR, JS
// WASM_FAILS_IN: SM
inline fun checkNPE(body: () -> Unit) {
var throwed = false
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JS_IR, JS
// WASM_FAILS_IN: SM
@JsFun("(x) => { if (x !== 'abc') throw 'error' }")
external fun notNullString(x: String)
+1
View File
@@ -1,3 +1,4 @@
// WASM_FAILS_IN: SM
// FILE: externals.js
// -- Strings --
+1
View File
@@ -1,4 +1,5 @@
// IGNORE_BACKEND_K2: JS_IR
// WASM_FAILS_IN: SM
// Partial copy of js/js.translator/testData/box/native/vararg.kt
// With some additions for concrete number types, strings and function references