Throw lua error when attempting table access on a non-table value.
This commit is contained in:
@@ -136,7 +136,7 @@ public class LValue {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
vm.pushnil();
|
vm.error( "attempt to index ? (a "+table.luaGetTypeName()+" value)", 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get the value as a LString
|
/** Get the value as a LString
|
||||||
|
|||||||
Reference in New Issue
Block a user