aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lstring.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lstring.js b/src/lstring.js
index 34f988e..af434c6 100644
--- a/src/lstring.js
+++ b/src/lstring.js
@@ -13,6 +13,7 @@ const luaS_hash = function(str) {
/* variant that takes ownership of array */
const luaS_bless = function(L, str) {
+ Object.freeze(str);
return str;
};