Closed Bug 1318980 Opened 8 years ago Closed 8 years ago

need include statement in js

Categories

(Firefox :: Untriaged, defect)

50 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jmichae3, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:50.0) Gecko/20100101 Firefox/50.0
Build ID: 20161104212021

Steps to reproduce:

import command coming to js is not the same as include.
include String;
example:
include "/menu.js";
with include we need 
includeOnce String; which would work far better at preventing code clash with
"option explicit";
and 
"use strict";
especially if combined.
not an implementation issue.

it's in the spec.
https://tc39.github.io/ecma262/#prod-ImportDeclaration

and you're filing to wrong place.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
read the heading. this is not for implementation for "import". as I said, import doesn't help with the need to require/include once. so either a require or include statement is needed and so is requireOnce or includeOnce.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
it's not an implementation issue.

if you have a request for ECMAScript spec, you should file a bug there, not here.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → INVALID
I don't want to touch ecma with a 10' pole.
You need to log in before you can comment on or make changes to this bug.