1
0
Fork 0
easejs/test/Class
Mike Gerwitz 60920f18a6
Fail intelligently if provided class in place of definition object
This is intended mainly to handle cases where the user forgets the second
argument when extending a class:

  Class.extend( Base )  // missing second argument (definition object)

* lib/ClassBuilder.js
  (exports.isClass): Move from lib/class.js.
  (exports.prototype.build): Throw error if definition object is a class.
* lib/class.js (module.exports.isClass): Reference `ClassBuilder.isClass'.
* test/Class/ExtendTest.js: Add respective test case.
2017-11-04 01:07:06 -04:00
..
AbstractTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
ConstructorTest.js Constructor virtual by default 2017-01-02 23:30:33 -05:00
ExtendTest.js Fail intelligently if provided class in place of definition object 2017-11-04 01:07:06 -04:00
GeneralTest.js Add Class.assert{InstanceOf,isA} 2017-10-27 23:46:16 -04:00
GetterSetterTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
ImplementTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
InstanceSafetyTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
InteropTest.js [copyright] Copyright update 2015-05-28 01:01:51 -04:00
NameTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
ParentTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
VisibilityTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00