Skip to content

s2wasm doesn't handle quoted function names #1327

@vvuk

Description

@vvuk

s2wasm doesn't handle quoted identifier names; e.g. the following test.s file:

	.text
	.file	"main"
	.globl	"Tool.Program, Function=null::TestMethod()"
	.type	"Tool.Program, Function=null::TestMethod()",@function
"Tool.Program, Function=null::TestMethod()":
	.result 	i32
	i32.const	$push0=, 5
	.endfunc
.Lfunc_end0:
	.size	"Tool.Program, Function=null::TestMethod()", .Lfunc_end0-"Tool.Program, Function=null::TestMethod()"

causes it to blow up:

[[parseType:]]:
==========
Function=null::TestMethod()",@function
"Tool.Program, Functi
==========
<crash>

I've also had errors in object_alias as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions