Skip to content

压缩工具会把else if压缩成elseif,导致报错 #7

Description

@iwillwen

现在用JSinJS的缩进工具来做minify发现一个bug。

if () {
  // statements
} else if () {
  //statements
}

以上代码会被压缩成

if(){}elseif(){}

这样引擎就会报错。求fix。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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