Skip to content

[js] add js.lib.NativeStringTools#12127

Merged
Simn merged 5 commits intodevelopmentfrom
js_nativestring
Jun 30, 2025
Merged

[js] add js.lib.NativeStringTools#12127
Simn merged 5 commits intodevelopmentfrom
js_nativestring

Conversation

@kLabz
Copy link
Contributor

@kLabz kLabz commented Apr 4, 2025

Closes #11904
Closes #8633 (included the commits from there here)

This is not a solution for the general case; removing special handling for untyped cast in null safety would be the way to go to unify behavior between first compilation and compilation with hxb roundtrip.

**/
@:overload(function(pattern:RegExp, replacement:String):String {})
@:overload(function(pattern:RegExp, replacement:String->String):String {})
@:overload(function(pattern:String, replacement:String->String):String {})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to avoid this syntax for new additions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to have "real overloads" share documentation?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I guess that's what @see is for, though I'm not sure how you'd point to the right thing here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to go ahead with @:overload for now, and rewrite that later when we have a solution for documentation

@skial skial mentioned this pull request Apr 9, 2025
1 task
@kLabz kLabz force-pushed the js_nativestring branch from 7e960fd to f5c5853 Compare June 26, 2025 18:32
@kLabz kLabz changed the title [js] add js.lib.NativeString [js] add js.lib.NativeStringTools Jun 26, 2025
@kLabz kLabz marked this pull request as ready for review June 26, 2025 20:12
@kLabz
Copy link
Contributor Author

kLabz commented Jun 30, 2025

So.. let's merge?

@Simn Simn merged commit cefabb1 into development Jun 30, 2025
95 checks passed
@kLabz kLabz deleted the js_nativestring branch July 1, 2025 06:38
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.

[js] Regression with null safety diagnostics

3 participants