on master help sign in
Make Bitwise shift names match elm-lang/core
commitba244b6173a2a507be6e0ddb4ee14234dcfe469a authorEvan Czaplicki <evancz@users.noreply.github.com> dateTue 4 Oct 2016, 11:19 (10 years ago) parentf71c9d4
1 file changed+3−3
src/Generate/JavaScript/Expression.hs+3−3
src/Generate/JavaScript/Expression.hs+3−3
@@ -338,9 +338,9 @@ getBinaryOp (Var.Canonical home name) =
338338 "and" -> Just OpBAnd
339339 "or" -> Just OpBOr
340340 "xor" -> Just OpBXor
341− "leftShift" -> Just OpLShift
342− "rightShift" -> Just OpSpRShift
343− "logicalRightShift" -> Just OpZfRShift
341+ "shiftLeftBy" -> Just OpLShift
342+ "shiftRightBy" -> Just OpSpRShift
343+ "shiftRightZfBy" -> Just OpZfRShift
344344 _ -> Nothing
345345
346346