UNPKG

walt-compiler

Version:

Alternative syntax for WebAssembly text format

77 lines (66 loc) 2.32 kB
# Snapshot report for `src/__tests__/compiler-spec.js` The actual snapshot is saved in `compiler-spec.js.snap`. Generated by [AVA](https://ava.li). ## import as > Snapshot 1 `<Program value="ROOT_NODE" type=null >␊ ␊ <Import value="" type=null >␊ ␊ <ObjectLiteral value="" type=null >␊ ␊ <Identifier value="getStringIterator" type=null /><BinaryExpression value="as" type=null >␊ ␊ <Identifier value="next" type=null /><Identifier value="string_next" type=null />␊ ␊ </BinaryExpression><Identifier value="reset" type=null /><Identifier value="stringLength" type=null /><Identifier value="indexOf" type=null />␊ ␊ </ObjectLiteral><StringLiteral value="../walt/string" type="i32" />␊ ␊ </Import>␊ ␊ </Program>` > Snapshot 2 `Cannot generate WebAssembly for undefined. 5 problems.␊ ␊ ␊ getStringIterator,␊ ^^^^^^^^^^^^^^^^^ Looks like you'd like to infer a type, but it was never provided by a linker. Non-concrete types cannot be compiled.␊ Infered type not supplied.␊ at global (undefined:3:20)␊ ␊ ␊ next as string_next,␊ ^^^^^^^^^^^ A type for original import next is not defined nor could it be inferred.␊ Using an 'as' import without a type.␊ at global (undefined:4:22)␊ ␊ ␊ reset,␊ ^^^^^ Looks like you'd like to infer a type, but it was never provided by a linker. Non-concrete types cannot be compiled.␊ Infered type not supplied.␊ at global (undefined:5:8)␊ ␊ ␊ stringLength,␊ ^^^^^^^^^^^^ Looks like you'd like to infer a type, but it was never provided by a linker. Non-concrete types cannot be compiled.␊ Infered type not supplied.␊ at global (undefined:6:15)␊ ␊ ␊ indexOf␊ ^^^^^^^ Looks like you'd like to infer a type, but it was never provided by a linker. Non-concrete types cannot be compiled.␊ Infered type not supplied.␊ at global (undefined:7:10)␊ ` ## throws > Snapshot 1 RuntimeError { message: 'unreachable', }