aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/js/runtime.jvm.lux
diff options
context:
space:
mode:
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/js/runtime.jvm.lux')
-rw-r--r--new-luxc/source/luxc/lang/translation/js/runtime.jvm.lux12
1 files changed, 1 insertions, 11 deletions
diff --git a/new-luxc/source/luxc/lang/translation/js/runtime.jvm.lux b/new-luxc/source/luxc/lang/translation/js/runtime.jvm.lux
index 267a3e637..9840bba1f 100644
--- a/new-luxc/source/luxc/lang/translation/js/runtime.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/js/runtime.jvm.lux
@@ -591,21 +591,11 @@
"}")
"})"))
-(runtime: text//hash "textHash"
- (format "(function " @ "(input) {"
- "var hash = 0;"
- (format "for(var i = 0; i < input.length; i++) {"
- "hash = (((hash << 5) - hash) + input.charCodeAt(i)) & 0xFFFFFFFF;"
- "}")
- "return " int//from-number "(hash);"
- "})"))
-
(def: runtime//text
Runtime
(format __text//index
__text//clip
- __text//char
- __text//hash))
+ __text//char))
(runtime: array//get "arrayGet"
(format "(function " @ "(arr,idx) {"