Summary: Fields in JavaScript (the public fields part of the proposal). Here's an example: class C { x = 2; }
Currently implemented behind the pref: javascript.options.experimental.fields Implementation tracking bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1499448 Pref on-by-default bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1555464 Standard (currently stage 3 proposal): https://tc39.es/proposal-class-fields/ Platform coverage: all Target release: 69 Is this feature restricted to secure contexts? No. JavaScript language features should be enabled everywhere. Do other browser engines implement this? Public fields are enabled by default in Chrome 72: https://www.chromestatus.com/feature/6001727933251584 Safari/JSC is in progress (looks like it's not merged yet?): https://bugs.webkit.org/show_bug.cgi?id=174212 Tests: Most of our own tests are in https://searchfox.org/mozilla-central/source/js/src/jit-test/tests/fields however, they're likely to move to js/src/tests/non262 after the pref has been turned on by default. A large number of tests scattered in test262, in js/src/tests/test262. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform