Skip to content

Fix string escape in @as("foo") on argument of externals. #5446

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 10 commits into from
Jun 20, 2022
Merged

Conversation

cristianoc
Copy link
Collaborator

No description provided.

@cristianoc cristianoc requested a review from cknitt June 19, 2022 09:28
@cristianoc cristianoc changed the title emit str Fix string escape in @bs.as on argument of externals. Jun 20, 2022
@cristianoc cristianoc changed the title Fix string escape in @bs.as on argument of externals. Fix string escape in @as("foo") on argument of externals. Jun 20, 2022
@cristianoc cristianoc merged commit 3fb1871 into master Jun 20, 2022
mununki pushed a commit to mununki/rescript-compiler that referenced this pull request Jul 15, 2022
…ang#5446)

* emit str

* Hack timestamps to get around tree-sitter failing on M1.

1) change files by hand
2) touch js_fold.ml js_record_iter.ml js_record_map.ml js_record_fold.ml

* Do not escape strings in @bs.as on externals.

Fixes rescript-lang#5402

* Hack the timestamp by doing a dummy modification.

* Comments in code.

* An alternative solution that requires fewer changes.

* Remove changes to Str.

* Restore original files.

* More restore files.

* Comment.
@cristianoc cristianoc deleted the emit-str branch July 21, 2022 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants