1
0
Fork 0
easejs/test
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
..
Class Fail intelligently if provided class in place of definition object 2017-11-04 01:07:06 -04:00
ClassBuilder Error constructor integration into ClassBuilder 2016-07-15 00:21:06 -04:00
Interface Interface.isInstanceOf will account for interop compatibility 2014-08-06 23:07:44 -04:00
MemberBuilder Corrected test broken by Node.js v0.10.27 2014-08-07 00:01:59 -04:00
MemberBuilderValidator `override' implies `virtual' 2017-06-30 02:01:40 -04:00
Trait Fix trait __inst 2017-11-02 00:15:31 -04:00
Util [copyright] Copyright update 2015-05-28 01:01:51 -04:00
ctor Error constructor `after' support 2016-07-15 00:18:42 -04:00
perf `override' implies `virtual' 2017-06-30 02:01:40 -04:00
warn Extracted warning handlers into their own prototypes 2014-06-11 23:42:20 -04:00
CombinePreEs5Test.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
CombineTest.js Exposing Trait in combined source files 2014-04-28 14:32:18 -04:00
FallbackMemberBuilderTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
FallbackVisibilityObjectFactoryTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
IndexTest.js Prototype wrapping using index function 2015-09-09 23:36:14 -04:00
MethodWrapperFactoryTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
MethodWrappersTest.js method.super references now ES3-compatible 2014-08-07 22:24:25 -04:00
PropParserKeywordsTest.js Exposing keyword bit values and bitmasks 2014-04-20 02:40:36 -04:00
VersionTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
VisibilityObjectFactoryFactoryTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
VisibilityObjectFactoryTest.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
common.js [copyright] Copyright update 2015-05-28 01:01:51 -04:00
inc-testcase.js Test case now allows for short-hand require of SUT 2014-07-24 01:11:55 -04:00
runner.in test/runner will now pass all option args to node 2014-07-27 01:53:34 -04:00
runner.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
test-rmtrail [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00