aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-26 23:49:25 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-26 23:56:57 +1000
commit37249336464af98800a7ed0b6ec21dc76b6effe9 (patch)
treeaa788b8739acc7afb281dd932a4bb26686afb886
parent0f0e4d15f7e23102ebb374504322942e3771357e (diff)
downloadfengari-37249336464af98800a7ed0b6ec21dc76b6effe9.tar.gz
fengari-37249336464af98800a7ed0b6ec21dc76b6effe9.tar.bz2
fengari-37249336464af98800a7ed0b6ec21dc76b6effe9.zip
src/lstrlib.js: lobject no longer used
-rw-r--r--src/lstrlib.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js
index f6353a0..6121804 100644
--- a/src/lstrlib.js
+++ b/src/lstrlib.js
@@ -4,7 +4,6 @@ const assert = require('assert');
const sprintf = require('sprintf-js').sprintf;
const lauxlib = require('./lauxlib.js');
-const lobject = require('./lobject.js');
const lua = require('./lua.js');
const luaconf = require('./luaconf.js');
const llimit = require('./llimit.js');
@@ -1388,7 +1387,7 @@ const createmetatable = function(L) {
lua.lua_setmetatable(L, -2); /* set table as metatable for strings */
lua.lua_pop(L, 1); /* pop dummy string */
lua.lua_pushvalue(L, -2); /* get string library */
- lua.lua_setfield(L, -2, lua.to_luastring("__index", true)); /* lobject.table_index = string */
+ lua.lua_setfield(L, -2, lua.to_luastring("__index", true)); /* metatable.__index = string */
lua.lua_pop(L, 1); /* pop metatable */
};