Reactivate block test in wasm-parser
Here's the test: https://github.com/xtuc/webassemblyjs/blob/fed152017fd5d19c09c8c53e3369d849e7c538f2/packages/wasm-parser/test/fixtures/block/with-label/actual.wat-failure#L3
It has been disabled in #276
Hmm ... can blocks have names? I can't find the reference right now, but I have a feeling that this was a feature that was removed before v1 of WebAssembly. Instructions like br, br_if, ... all break to a specific depth rather than a label.
Also, running wat2wasm --debug-names with the following:
(module
(func
(block $test)
)
)
Does not include the string 'test' in the custom name section.
Although a label is mentioned in the spec:

Despite the spec indicating that branch instructions can use labels or indices, I can't find any examples in the test suite (https://github.com/WebAssembly/testsuite) that use labels.
Ok, thanks for the clarification.
The name is probably available in WAST as syntactic sugar but not actual semantics.
So I guess we should just remove this test?
Yes, I agree, this should be removed.