ToModule and new Module

Erik Arvidsson erik.arvidsson at
Wed Sep 11 07:28:31 PDT 2013

What does the following do?

var x = 1;
var m = new Module({
  get x() {
    return x;
print(m.x);  // ???

Does ToModule do a [[Get]] or does it keep the accessor?

What about setters? Does it keep identity of the getter function?


More information about the es-discuss mailing list