From a9ccc82e2ab9db3af1acb30ec70cda82e1f30803 Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Thu, 29 Dec 2016 13:50:00 -0800 Subject: Export name uniqueness (#932) * Export name uniqueness spec test exports.wast makes it a validation failure for exported names to be duplicate. I find this somewhat surprising (I see exports as a dictionary, so duplicates simply overwrite previous entries), I'd therefore be happy if others want to reverse the polarity of this (make it OK to duplicate export names). * Fix unintended change --- Modules.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules.md b/Modules.md index 6decd51..708b79e 100644 --- a/Modules.md +++ b/Modules.md @@ -118,6 +118,8 @@ if another WebAssembly instance imports the definition, then both instances will share the same definition and the associated state (global variable value, linear memory bytes, table elements) is shared. +Export names must be unique. + In the MVP, only *immutable* global variables can be exported. ## Integration with ES6 modules -- cgit v1.2.3