Just released the POC code for review. Using the `Privacy()` export, you can now wrap any class or object definition and add `private` and `protected` members. To add privileged members to a `class`, declare a function `static [Privacy.Data]() {}` and return an object containing your `public` data and `private`/`protected` members. To add privileged members to any object, declare the field name with array notation, including the privilege level in the name. The "internal" privilege level has been left out of this POC and will be released as a separate proposal if this proposal gains any traction.
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss