Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

import and execution order #505

@Alphapage

Description

@Alphapage

Hello,

It seems that each import in a .js file is running asynchronously.
For example, when:

import {something} from './1.js'
console.log('inner execution)
import {something} from './2.js
debugger
import {something} from './3.js'

2 is called before 1 and debugger is reached after 3 was executed.

Any idea ? Maybe this is the correct behaviour to let import be asynchronous. I don't know a lot about the spec or maybe I'm wrong.

Thanks in advance for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions