Javascript ES6 - get name of instance from within class
<p>I'd like to be able to get the name of the instance that instantiated a class, from within the class.</p>

<p>Example:</p>

<pre><code>class MyClass {
    getInstanceName() {
        // code that figures out the name given to the instance 
        // instantiating this class
    }
}

var inst = new MyClass();
console.log(inst.getInstanceName()); // should log "inst"
</code></pre>

<p>I'd like to get this to emit an event from within the class with the instance name. I'm doing this in node.js</p>