Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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