Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
(fix) Switch order of parameters for arraySubtract on JS backends
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Mar 19, 2019
1 parent 102d208 commit 4b97cdf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/smoke/logic.ergo
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ contract Smoke over TemplateModel {
enforce(some(A{ a : 1 })?.a ?? 2 = 1);
enforce(C{ contract : "foo" }.contract = "foo");
enforce(C{ contract : "foo" }.contract = "foo");
enforce(arraySubtract([1,2,3],[2,3,4]) = [1]);
return MyResponse{
output: "Smoke.test successful"
}
Expand Down
2 changes: 1 addition & 1 deletion mechanization/Backend/Lib/ENNRCtoJavaScript.v
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ End sanitizer.
| OpLt => `"(compare(" +++ e1 +++ `"," +++ e2 +++ `") < 0)" (* XXX Use compare! *)
| OpLe => `"(compare(" +++ e1 +++ `"," +++ e2 +++ `") <= 0)" (* XXX Use compare! *)
| OpBagUnion => `"bunion(" +++ e1 +++ `", " +++ e2 +++ `")"
| OpBagDiff => `"bminus(" +++ e1 +++ `", " +++ e2 +++ `")"
| OpBagDiff => `"bminus(" +++ e2 +++ `", " +++ e1 +++ `")"
| OpBagMin => `"bmin(" +++ e1 +++ `", " +++ e2 +++ `")"
| OpBagMax => `"bmax(" +++ e1 +++ `", " +++ e2 +++ `")"
| OpContains => `"contains(" +++ e1 +++ `", " +++ e2 +++ `")"
Expand Down
2 changes: 1 addition & 1 deletion packages/ergo-cli/extracted/ergoccore.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ergo-compiler/extracted/compilercore.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4b97cdf

Please sign in to comment.