1
0
Fork 0
easejs/test/Trait
Mike Gerwitz bb3956f1b4
Fix trait __inst
`this.__inst' within trait methods will now correctly resolve to the public
visibility object of the class we're mixed into, rather than
`undefined'.  This behavior is consistent with the rest of the system.

* lib/ClassBuilder.js (initInstance): Add `inst' to private metadata.  This
  is the public visibility object.
* lib/Trait.js (tctor): Initialize concrete trait `__inst' to aforementioned
  `inst' metadata value.
* test/Trait/LinearizationTest.js: Add respective test.
2017-11-02 00:15:31 -04:00
..
AbstractTest.js [copyright] Copyright update 2015-05-28 01:01:51 -04:00
ClassExtendTest.js `override' implies `virtual' 2017-06-30 02:01:40 -04:00
ClassVirtualTest.js Moved class virtual param test into ClassVirtualTest case 2014-05-02 20:13:41 -04:00
ContextTest.js Copyright year updates for recent trait changes 2016-12-29 03:11:49 -05:00
DefinitionTest.js Provide useful error on attempt to mix in non-trait 2015-10-25 22:15:34 -04:00
ImmediateTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
LinearizationTest.js Fix trait __inst 2017-11-02 00:15:31 -04:00
MixedExtendTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
NamedTest.js Test parameterized traits with named staging object 2017-06-30 02:06:36 -04:00
ParameterTest.js [copyright] Copyright update 2015-05-28 01:01:51 -04:00
PropertyTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
VirtualTest.js `override' implies `virtual' 2017-06-30 02:01:40 -04:00