jackxiao / jslibs

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

unconstructible jslibs classes #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In jslibs, to avoid classes to be constructed, we throw an error in the
constructor.

A better way to achieve this is to mimic the StopIteration class:
- don't define the constructor function.
- use DEFINE_HAS_INSTANCE to allow catch (ex if ex instanceof StopIteration)

Original issue reported on code.google.com by sou...@gmail.com on 1 Aug 2008 at 9:01

GoogleCodeExporter commented 9 years ago
Done. see r1825

Original comment by sou...@gmail.com on 7 Aug 2008 at 8:30