summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/tail-calls/bug1851568.js
blob: b9622042d8dbb13c3c981e1f114680f630445acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
wasmFailValidateText(`(module
    (func (result i32 f64)
      i32.const 1
      f64.const 2.0
    )
    (func (export "f") (result f64)
      return_call 0
    )
)`, /type mismatch/);

wasmFailValidateText(`(module
    (func (result i32 f64)
      i32.const 1
      f64.const 2.0
    )
    (func (export "f") (result f32 i32 f64)
      f32.const 3.14
      return_call 0
    )
)`, /type mismatch/);