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

(fix) Switch order of parameters for arraySubtract on JS backends #580

Merged
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
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.