import.meta and TC39 process as a whole

Naveen Chawla naveen.chwl at
Sat Aug 5 10:05:23 UTC 2017

Does existing code use modules??? My understanding is that modules are a
recent concept. And the `module` keyword would only apply in actual modules

Pls correct me if I'm wrong

On Sat, 5 Aug 2017 at 15:21 T.J. Crowder <tj.crowder at>

> On Sat, Aug 5, 2017 at 10:13 AM, Naveen Chawla
> <naveen.chwl at> wrote:
> >
> > I would be comfortable with `module.import()` and `module.meta`
> > instead of `import()` and `import.meta`, simply because the name
> > `module` more automatically describes the module specific "global"
> > object than `import` does.
> If `module` were used, it would have to be an identifier (like `Symbol`
> and `Reflect`), not a keyword; we can't break existing code using `module`
> as an identifier. And like `Symbol` and `Reflect`, codebases that use it
> for something else would have to adjust if they want to use the new thing.
> (If they don't need to use the new thing, they're fine, they just shadow
> it.)
> If it's an identifier, it contains a value; that value can be assigned to
> other variables, passed into functions, etc. I'm not steeped enough in the
> proposal to know whether that's a problem; I suspect it is. But I thought
> I'd note it.
> -- T.J. Crowder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list