1
0
Fork 0
easejs/test/ClassBuilder
Mike Gerwitz 1d9c06a169
Properly handle error subtype #constructor (#__constructor alias)
Using `#constructor' in place of `#__construct' caused an error attempting
to "redefine" `#__constructor' (once the alias was applied); the system was
making improper assumptions and not accounting for aliases.

In fact, everthing about how this was being done was bad, since adding any
keywords would have thrown it off as well!

* lib/ClassBuilder.js (build): Move ector detection past prop
  parsing.  Check parsed properties instead of raw.
* test/ClassBuilder/ErrorExtendTest.js: Iterate ctor override test on new
    `ctors'.
  (caseSetUp) [ctors]: Add property.
2017-11-04 14:51:29 -04:00
..
ConstTest.js Extracted warning handlers into their own prototypes 2014-06-11 23:42:20 -04:00
ErrorExtendTest.js Properly handle error subtype #constructor (#__constructor alias) 2017-11-04 14:51:29 -04:00
FinalTest.js Extracted warning handlers into their own prototypes 2014-06-11 23:42:20 -04:00
InstanceTest.js [copyright] Copyright update 2015-05-28 01:01:51 -04:00
MemberRestrictionTest.js Alias `constructor` member to `__construct` 2015-09-16 00:02:00 -04:00
StaticTest.js Extracted warning handlers into their own prototypes 2014-06-11 23:42:20 -04:00
VisibilityTest.js Extracted warning handlers into their own prototypes 2014-06-11 23:42:20 -04:00