need include statement in js

RESOLVED INVALID

Status

()

RESOLVED INVALID
2 years ago
2 years ago

People

(Reporter: jmichae3, Unassigned)

Tracking

50 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
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
Last Resolved: 2 years ago
Resolution: --- → INVALID
(Reporter)

Comment 2

2 years ago
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
Last Resolved: 2 years ago2 years ago
Resolution: --- → INVALID
(Reporter)

Comment 4

2 years ago
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.