Hi, Probably worth providing a default implementation of the `@@toStringTag` when evaluating a class [1]. In this case users will be able to do:
``` class Point { ... } var p = new Point(1, 2); console.log(p); // "[object Point]" ``` The default implementation will be just (if the `className` is defined of course): ``` proto[@@toStringTag] = function() { return className; }; ``` [1] https://people.mozilla.org/~jorendorff/es6-draft.html#sec-runtime-semantics-classdefinitionevaluation Dmitry
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss