gecko-dev/dom/console
Jan de Mooij 1deb4708b9 Bug 1713083 part 2 - Remove JSPROP_GETTER and JSPROP_SETTER. r=evilpie
We now set the descriptor's getter or setter when the corresponding argument
to DefineAccessorProperty is non-nullptr.

Usually the flag was passed only if the corresponding object argument was non-nullptr,
so there's no change in behavior for those.

The exception is `Console::PopulateConsoleNotificationInTheTargetScope` where we passed
JSPROP_SETTER with a nullptr setter. Changing this is likely okay; it shouldn't make a
difference for new properties anyway.

Note that code can still use the richer PropertyDescriptor API to set nullptr
getters/setters explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D116091
2021-05-27 15:03:38 +00:00
..
tests
components.conf
Console.cpp Bug 1713083 part 2 - Remove JSPROP_GETTER and JSPROP_SETTER. r=evilpie 2021-05-27 15:03:38 +00:00
Console.h
ConsoleAPIStorage.jsm
ConsoleCommon.h
ConsoleInstance.cpp
ConsoleInstance.h
ConsoleReportCollector.cpp
ConsoleReportCollector.h
ConsoleUtils.cpp
ConsoleUtils.h
moz.build
nsIConsoleAPIStorage.idl
nsIConsoleReportCollector.h