Skip to content

Commit dc7eb63

Browse files
authored
add Deno as a reserved name (#6428)
* add `Deno` as a reserved name * [skip ci] add CHANGELOG
1 parent da3d740 commit dc7eb63

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
- Fix issue with Dynamic import of module in nested expressions https://github.com/rescript-lang/rescript-compiler/pull/6431
1818
- Fix issue where GenType was not supporting `@tag` on ordinary variatns https://github.com/rescript-lang/rescript-compiler/pull/6437
1919

20+
#### :nail_care: Polish
21+
22+
- Add [`Deno`](https://deno.land/api?s=Deno) to reserved names, so that modules named `Deno` don't clash with the globally exposed `Deno` object. https://github.com/rescript-lang/rescript-compiler/pull/6428
23+
2024
# 11.0.0-rc.4
2125

2226
#### :rocket: New Feature

jscomp/ext/js_reserved_map.ml

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ let sorted_keywords = [|
169169
"DecompressionStream";
170170
"DelayNode";
171171
"DelegatedInkTrailPresenter";
172+
"Deno";
172173
"Document";
173174
"DocumentFragment";
174175
"DocumentPictureInPictureEvent";

scripts/build_reserved.ml

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
let reserved_words =
2626
[|
27-
(* keywork *)
27+
(* keywords *)
2828
"break";
2929
"case"; "catch"; "continue";
3030
"debugger";"default";"delete";"do";
@@ -130,7 +130,10 @@
130130
"__esModule";
131131

132132
(* Bun global obj *)
133-
"Bun"
133+
"Bun";
134+
135+
(* Deno global obj *)
136+
"Deno";
134137
|]
135138

136139

0 commit comments

Comments
 (0)