Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bigskysoftware/_hyperscript
/ #hashScript
Method
#hashScript
src/core/runtime/runtime.js:769–775 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
767
}
768
769
#hashScript(str) {
770
var
hash = 5381;
771
for
(
var
i = 0; i < str.length; i++) {
772
hash = ((hash << 5) + hash) + str.charCodeAt(i);
773
}
774
return
hash;
775
}
776
777
cleanup(elt) {
778
if
(!elt._hyperscript)
return
;
Callers
1
#initElement
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected