diff options
author | Eduardo Julian | 2018-07-11 22:21:23 -0400 |
---|---|---|
committer | Eduardo Julian | 2018-07-11 22:21:23 -0400 |
commit | 81480739f4c5caa468b295eb047e5844d39701ca (patch) | |
tree | c0b95639cd9427f8ecf57220a38b413fb9845145 /new-luxc/source/luxc/lang/translation/js/runtime.jvm.lux | |
parent | f76922dfef6e88db854a27dc17987ccdc9736d6a (diff) |
- Removed "lux text hash" extension.
Diffstat (limited to '')
-rw-r--r-- | new-luxc/source/luxc/lang/translation/js/runtime.jvm.lux | 12 |
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) {" |