From 37249336464af98800a7ed0b6ec21dc76b6effe9 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 26 Apr 2017 23:49:25 +1000 Subject: src/lstrlib.js: lobject no longer used --- src/lstrlib.js | 3 +-- 1 file changed, 1 insertion(+), 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 */ }; -- cgit v1.2.3-70-g09d2