Skip to content

Javascript for...of loop compiling issue #246

@SongX-23

Description

@SongX-23
  • Recently, I spot a javascript compile issue from Web Essentials on Visual Studio 2015.
    The following is my plain javascript code.
    JS

  • After it has been compiled and published to the server, the compiled javascript code is not right and it throws an error because it tries to loop through itself.
    Compiled JS

  • If I change the way of writing iterations to old fashion, the compile issue is gone.
    Fix

  • Many for..of loops have this issue in the same file. Probably worth to have a look. :)

  • I cannot really give you a self-contained example. Sorry about that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions