« Bugzilla Issues Index
#96 — Modules: Shouldn't ProgramElement contain ModuleDeclaration?
- bug_id:
96
- creation_ts:
2011-04-25 13:20:00 -0700
- short_desc:
Modules: Shouldn't ProgramElement contain ModuleDeclaration?
- delta_ts:
2015-07-10 08:34:23 -0700
- product:
Harmony
- component:
proposals
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- bug_file_loc:
http://wiki.ecmascript.org/doku.php?id=harmony:modules
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Erik Arvidsson
- assigned_to:
Dave Herman
- cc:
["dherman", "erik.arvidsson"]
- commentid:
192
- comment_count:
0
- who:
Erik Arvidsson
- bug_when:
2011-04-25 13:20:07 -0700
http://wiki.ecmascript.org/doku.php?id=harmony:modules
Currently the syntax for ProgramElement is
ProgramElement(load) ::= Statement
| VariableDeclaration
| FunctionDeclaration
| ImportDeclaration(load)
| ExportDeclaration(load)
I would expect this to contain ModuleDeclaraion(load) so that a module can be decclared at the top level. For example:
module m {}
- commentid:
194
- comment_count:
1
- who:
Dave Herman
- bug_when:
2011-04-25 13:31:01 -0700
Yes, thanks for the catch. I've updated the wiki.
Dave