Summary:

Decorators are functions called on classes, class elements, or other
JavaScript syntax forms during definition that provide for a
metaprogramming capability in JavaScript. This proposal recently reached
stage 3 at TC39. Prototyping it in SpiderMonkey will provide valuable
feedback to the TC39 committee and ensure our implementation does not fall
behind the standard.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1781212

Specification:

- https://github.com/tc39/proposal-decorators

Standards Body:

- Part of TC39

Platform coverage: All

Preference: Enabled using the `--enable-decorators` build flag in configure.

DevTools bug: n/a

Other browsers:

- V8: Feature tracked by
https://bugs.chromium.org/p/v8/issues/detail?id=12763
- JavaScriptCore: I'm not sure.

web-platform-tests:

- Test262 has some initial tests here:
https://github.com/tc39/test262/tree/main/src/decorator
- Because of the limited test262 coverage at the moment, I'm adding tests
here:
https://searchfox.org/mozilla-central/source/js/src/jit-test/tests/decorators

Thanks,

Dan

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAC_Rxa6kna5CO0kvvOkodOCDqrtaUN41Y0nsGrdXFW2DHfSwTw%40mail.gmail.com.

Reply via email to