Skip to content

wasm-split: WasmBinaryWriter::getDataSegmentIndex assertion related to DataDrop #6512

@kripken

Description

@kripken
(module
 (memory $0 16 17)
 (data $0 (i32.const 0) "")
 (func $0
  (data.drop $0)
 )
)
$ wasm-split w.wat --split --primary-output a.wasm --secondary-output b.wasm -all
warning: not keeping any functions in the primary module
wasm-split: wasm-binary.cpp:682: uint32_t wasm::WasmBinaryWriter::getDataSegmentIndex(wasm::Name) const: Assertion `it != indexes.dataIndexes.end()' failed.
Aborted

@tlively

Metadata

Metadata

Assignees

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