Skip to content

bug(hasCode): use index variable #6647

@Eucalyptus-Veary

Description

@Eucalyptus-Veary

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Image

Expected Behavior

我猜想真正想做应该是类似下面的代码
const hashCode = str => { let hash = 0; for (let i = 0; i < str.length; i++) { const char = str.charCodeAt(i); // 1 => i hash = (hash << 5) - hash + char; hash |= 0; } return hash; }

Interactive render mode

Interactive Server (Interactive server-side rendering (interactive SSR) using Blazor Server)

Steps To Reproduce

https://github.com/dotnetcore/BootstrapBlazor

Exceptions (if any)

No response

.NET Version

NET9.0

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions