do not stub __metatable or __mode

This commit is contained in:
kikito 2015-10-31 16:26:20 +01:00
parent d97a1bfbd4
commit d6b5f5c22d

View File

@ -97,9 +97,9 @@ end
local Object = _createClass("Object", nil) local Object = _createClass("Object", nil)
Object.static.__metamethods = { '__add', '__band', '__bor', '__bxor', '__bnot', '__call', '__concat', '__div', '__eq', Object.static.__metamethods = { '__add', '__band', '__bor', '__bxor', '__bnot', '__call', '__concat',
'__ipairs', '__idiv', '__le', '__len', '__lt', '__metatable', '__mod', '__mode', '__div', '__eq', '__ipairs', '__idiv', '__le', '__len', '__lt', '__mod',
'__mul', '__pairs', '__pow', '__sh1', '__shr', '__sub', '__tostring', '__unm' } '__mul', '__pairs', '__pow', '__shl', '__shr', '__sub', '__tostring', '__unm' }
function Object.static:allocate() function Object.static:allocate()
assert(type(self) == 'table', "Make sure that you are using 'Class:allocate' instead of 'Class.allocate'") assert(type(self) == 'table', "Make sure that you are using 'Class:allocate' instead of 'Class.allocate'")