mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
1deb4708b9
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 |
||
---|---|---|
.. | ||
tests | ||
components.conf | ||
Console.cpp | ||
Console.h | ||
ConsoleAPIStorage.jsm | ||
ConsoleCommon.h | ||
ConsoleInstance.cpp | ||
ConsoleInstance.h | ||
ConsoleReportCollector.cpp | ||
ConsoleReportCollector.h | ||
ConsoleUtils.cpp | ||
ConsoleUtils.h | ||
moz.build | ||
nsIConsoleAPIStorage.idl | ||
nsIConsoleReportCollector.h |