hongee / google-caja

Automatically exported from code.google.com/p/google-caja
0 stars 0 forks source link

Prevent functions marked as simple from being marked as constructors as well. #217

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
asCtor allows simple functions and constructors to appear after new.

But caja.def calls ctor, which used to prohibit simple functions in the
first position.  (The check was removed in metaweta/attached-methods.) 
This leaves the possibility that a function might be marked both as a
contructor and a simple function, which messes with the function species table:
  http://code.google.com/p/google-caja/wiki/FunctionSpecies

Original issue reported on code.google.com by metaw...@gmail.com on 24 Apr 2008 at 5:17

GoogleCodeExporter commented 9 years ago

Original comment by mikesamuel@gmail.com on 30 May 2008 at 12:56

GoogleCodeExporter commented 9 years ago

Original comment by mikesamuel@gmail.com on 30 May 2008 at 4:19

GoogleCodeExporter commented 9 years ago

Original comment by mikesamuel@gmail.com on 6 Jun 2008 at 1:38