We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 788e27e commit 673fe9dCopy full SHA for 673fe9d
Sources/WasmKit/Execution/StoreAllocator.swift
@@ -429,6 +429,9 @@ extension StoreAllocator {
429
}
430
431
let exports: [String: InternalExternalValue] = try module.exports.reduce(into: [:]) { result, export in
432
+ guard result[export.name] == nil else {
433
+ throw ValidationError("Duplicate export name: \(export.name)")
434
+ }
435
result[export.name] = try createExportValue(export)
436
437
Tests/WasmKitTests/SpectestTests.swift
@@ -22,7 +22,6 @@ final class SpectestTests: XCTestCase {
22
path: Self.testPaths,
23
include: [],
24
exclude: [
25
- "exports.wast",
26
"func.wast",
27
"func_ptrs.wast",
28
"global.wast",
0 commit comments