Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Upgrade Google Closure Compiler #3974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ private class ClosureAstTransformer(relativizeBaseURI: Option[URI]) {
genFunction(name.name, args, body)

case Spread(items) =>
new Node(Token.SPREAD, transformExpr(items))
new Node(Token.ITER_SPREAD, transformExpr(items))

case _ =>
throw new TransformException(s"Unknown tree of class ${tree.getClass()}")
Expand All @@ -398,7 +398,7 @@ private class ClosureAstTransformer(relativizeBaseURI: Option[URI]) {
val pos = if (param.pos.isDefined) param.pos else parentPos
val node = transformName(param.name)(pos)
if (param.rest)
setNodePosition(new Node(Token.REST, node), pos)
setNodePosition(new Node(Token.ITER_REST, node), pos)
else
node
}
Expand Down
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ object Build {
commonLinkerSettings _
).settings(
libraryDependencies ++= Seq(
"com.google.javascript" % "closure-compiler" % "v20190513",
"com.google.javascript" % "closure-compiler" % "v20200101",
"com.novocode" % "junit-interface" % "0.9" % "test"
) ++ (
parallelCollectionsDependencies(scalaVersion.value)
Expand Down