Increases the timeout in this test case to avoid spurious failures when the network is having one of those days.
Do not trigger __index metamethod when looking for __name or __type fields in tables or userdata. Try to cause the least amount of side effects as possible.
Most classes got a __name field with a descriptive name (ie. luanode.net.Server) so it will show up in luanode.introspect.dump_vm()
luanode.introspect should be the place to put all stuff related to get an insight of the running VM: - how many sockets are created right now? - how many timers? That information is available in luanode.introspect.counters, with functions to retrieve each value.
The idea is to provide better names for exported classes. These names will show in new code that can traverse the "world" and report the existing userdata, tables and so on at a given moment.
commit 8ba333b1519e499bf730bbe5fe72f6d000cc848d Author: Ignacio Burgueño <email@example.com> Date: Thu Jul 24 10:08:31 2014 -0300 Adds get_full_class_name_T function to provide better introspection. This commit adds the function get_full_class_name_T which can be overriden by the exposed classes. The returned string is used to populate the __name field of the exposed class metatable. This allows to provide better introspection since we can provide the full name of the class (i.e. including the module name) instead of just using exported class name. By default, get_full_class_name_T will return the className unless overridden.
commit b1592cd5c2a6f77b952a4ae3daff5a14dedf16a9 Author: Ignacio Burgueño <firstname.lastname@example.org> Date: Mon Jun 2 15:38:32 2014 -0300 Improve test runner The test runner was not reporting errors correctly. The error code wasn't being propagated.
Original commit: commit c728eec4c6db9f5e3c8cd12a1fd30bc08b700062 Author: Ignacio Burgueño <email@example.com> Date: Wed Jul 23 19:55:19 2014 -0300 Adds __name field to exposed classes' metatable. Each exposed class has a metatable. The '__name' field is added to it, and it has the exposed class 'className'. This way, we can know the className from the metatable (which wasn't possible just by looking at its members in some cases).
Large performance counter frequency values would cause overflows, even when 64-bit integers were used to do the multiplication with NANOSEC. Fix this by using floating point math instead. This just applies part of this commit: joyent/libuv@44ecaa7