From b257a242b5b8aef9f32cddf36f595389ab59dff0 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 4 Mar 2018 12:58:37 +1100 Subject: src/lobject.js: lua_tojsstring now uses unicode replacement character by default --- src/lobject.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/lobject.js b/src/lobject.js index e3b92f7..41bd702 100644 --- a/src/lobject.js +++ b/src/lobject.js @@ -267,9 +267,8 @@ class TValue { } jsstring(from, to) { - return to_jsstring(this.svalue(), from, to); + return to_jsstring(this.svalue(), from, to, true); } - } const pushobj2s = function(L, tv) { -- cgit v1.2.3-70-g09d2