зеркало из https://github.com/mozilla/gecko-dev.git
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 | ||
Console.cpp | ||
Console.h | ||
ConsoleAPIStorage.jsm | ||
ConsoleCommon.h | ||
ConsoleInstance.cpp | ||
ConsoleInstance.h | ||
ConsoleReportCollector.cpp | ||
ConsoleReportCollector.h | ||
ConsoleUtils.cpp | ||
ConsoleUtils.h | ||
components.conf | ||
moz.build | ||
nsIConsoleAPIStorage.idl | ||
nsIConsoleReportCollector.h |