| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
rescript
npm i https://pkg.pr.new/rescript@8317
npm i https://pkg.pr.new/@rescript/darwin-arm64@8317
npm i https://pkg.pr.new/@rescript/darwin-x64@8317
npm i https://pkg.pr.new/@rescript/linux-arm64@8317
npm i https://pkg.pr.new/@rescript/linux-x64@8317
npm i https://pkg.pr.new/@rescript/runtime@8317
npm i https://pkg.pr.new/@rescript/win32-x64@8317 commit: 5e37735 |
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 224576540e
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
| | PatRest rest_pat -> (fields, flag, Some rest_pat) | ||
| | PatUnderscore -> (fields, flag, rest)) |
There was a problem hiding this comment.
Reject duplicate record-rest clauses during parsing
parse_record_pattern stores rest as Some rest_pat every time it sees PatRest and does not check whether a previous rest was already parsed. This lets patterns with multiple rest clauses be accepted while silently discarding one clause, which is ambiguous and can mask user mistakes instead of producing a syntax error.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: f835e3f28e
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: da71513258
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 73a9b5dd3d
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 73a9b5dd3d
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 792d7084c5
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Sorry, something went wrong.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: ef14238e21
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: a54691411c
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: a87f7f9406
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Signed-off-by: tsnobip <dontshootthink@gmail.com>
Signed-off-by: tsnobip <dontshootthink@gmail.com>
Signed-off-by: tsnobip <dontshootthink@gmail.com>
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 686c0d40a4
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: ed0fd1736e
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
|
I asked Codex (locally) if it noticed anything else, here is the output (I think the one about ast0 can be ignored): Yes. The biggest one I’d flag is in compiler/core/js_pass_record_rest.ml. materialize_fields rewrites later reads of source.field to the destructured local binding introduced for object rest: let {name, ...restConfig as rest} = source
// later source.name can become nameThat is only valid if source cannot be reassigned or observed through mutation between the destructure and the read. The pass rewrites the whole remaining tail block, including nested function bodies, so cases like this look risky: let mutable source = {name: "a", version: "1", debug: false}
let {name: _, ...restConfig as rest} = source
source = {name: "b", version: "2", debug: true}
source.nameIf the JS pass replaces the final source.name with the destructured name, it returns the old value. Even worse with a closure created after destructuring and called after reassignment. I’d expect either no rewrite, or a much narrower rewrite that stops at writes/reassignments and probably does not descend into nested functions. Other questionable points:
If I were reviewing the PR, I’d lead with the js_pass_record_rest rewrite across mutation/closures. That one looks like the highest chance of a real behavioral regression. |
Sorry, something went wrong.
@cknitt codex has been warning me multiple times about this issue but always with invented rescript syntax and semantics, typically let mutable is not a thing in rescript and if you use a ref instead I can't reproduce any issue in this case. Could you try to come up with any reproducible issue in the dev playground. I'll take a look at the other issues you've raised. UPDATE: I've addressed the other issues. |
Sorry, something went wrong.
Signed-off-by: tsnobip <dontshootthink@gmail.com>
Signed-off-by: tsnobip <dontshootthink@gmail.com>
Didn't manage to come up with anything either.
Thanks! 👍 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
fixes #8311