aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-03-06 01:07:43 -0400
committerEduardo Julian2018-03-06 01:07:43 -0400
commit38bd6f35d81705ab0c04c85601ac5b236b62605a (patch)
tree4c2fd4f6369067965017aeea18ba68b1f658344d /new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux
parent9bf491a18e4b772505c3767cf0249eb24f0a822b (diff)
- Initial Lua backend implementation.
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux')
-rw-r--r--new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux11
1 files changed, 3 insertions, 8 deletions
diff --git a/new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux b/new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux
index 14329e0dd..8b45557cd 100644
--- a/new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux
@@ -354,14 +354,9 @@
Trinary
(format subjectJS ".replace(" paramJS "," extraJS ")"))
-(do-template [<name> <method>]
- [(def: (<name> [textJS partJS startJS])
- Trinary
- (format <method> "(" textJS "," partJS "," startJS ")"))]
-
- [text//index runtimeT.text//index]
- [text//last-index runtimeT.text//last-index]
- )
+(def: (text//index [textJS partJS startJS])
+ Trinary
+ (format runtimeT.text//index "(" textJS "," partJS "," startJS ")"))
## [[Math]]
(do-template [<name> <method>]