UNPKG

walt-compiler

Version:

Alternative syntax for WebAssembly text format

68 lines (56 loc) 1.15 kB
# Snapshot report for `src/parser/__tests__/array-spec.js` The actual snapshot is saved in `array-spec.js.snap`. Generated by [AVA](https://ava.li). ## property access > a[0] = 0; `(set_local a␊ ;; unparsed␊ (subscript␊ (get_local a)(i32.const 0))(i32.const 0))␊ ` > a = b[0]; `(set_local a␊ ;; unparsed␊ (subscript␊ (get_local b)(i32.const 0)))␊ ` > x = a[0] + a[1]; `(set_local x␊ (??.add␊ ;; unparsed␊ (subscript␊ (get_local a)(i32.const 0));; unparsed␊ (subscript␊ (get_local a)(i32.const 1))))␊ ` > x = a[b[c[0]]]; `(set_local x␊ ;; unparsed␊ (subscript␊ (get_local a);; unparsed␊ (subscript␊ (get_local b);; unparsed␊ (subscript␊ (get_local c)(i32.const 0)))))␊ `