summaryrefslogtreecommitdiff
path: root/src/lobject.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-08 18:26:14 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-08 18:26:14 +1000
commit636b1d8a5a566fac0c9c61fed44049c659435a56 (patch)
tree99ee78a56e98f09bcb7a1255b34b5638b8c776f3 /src/lobject.js
parent48d20ce3e2b38d1da536e42f225401fc06147d2a (diff)
downloadfengari-636b1d8a5a566fac0c9c61fed44049c659435a56.tar.gz
fengari-636b1d8a5a566fac0c9c61fed44049c659435a56.tar.bz2
fengari-636b1d8a5a566fac0c9c61fed44049c659435a56.zip
Introduce a TString class
Diffstat (limited to 'src/lobject.js')
-rw-r--r--src/lobject.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lobject.js b/src/lobject.js
index 77c63d0..4b83bdb 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -161,11 +161,11 @@ class TValue {
}
svalue() {
- return this.tsvalue();
+ return this.tsvalue().getstr();
}
vslen() {
- return this.tsvalue().length;
+ return this.tsvalue().tsslen();
}
jsstring(from, to) {