vm/src/lib.js
function (table) {
			var mt;

			if (table instanceof shine.Table) {
				if ((mt = table.__shine.metatable) && (mt = mt.__metatable)) return mt;
				return table.__shine.metatable;

			} else if (typeof table == 'string') {
				return stringMetatable;
			}
		}
function (table) {
			var mt;

			if (table instanceof shine.Table) {
				if ((mt = table.__shine.metatable) && (mt = mt.__metatable)) return mt;
				return table.__shine.metatable;

			} else if (typeof table == 'string') {
				return stringMetatable;
			}
		}
function ( table ) { var mt ; if ( table instanceof shine . Table ) { if ( ( mt = table . __shine . metatable ) && ( mt = mt . __metatable ) ) return mt ; return table . __shine . metatable ; } else if ( typeof table == 'string' ) { return stringMetatable ; } }
Implementation of Lua's getmetatable function.
@param {object} table The table from which to obtain the metatable.
Implementation of Lua s getmetatable function .