зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1513397 - [release 107] Don't filter out dollar symbols in function names (#7386). r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D14271
This commit is contained in:
Родитель
e089fdf3d3
Коммит
5fa7a50263
|
@ -11,7 +11,7 @@ import { getFilename } from "../../source";
|
|||
// Decodes an anonymous naming scheme that
|
||||
// spider monkey implements based on "Naming Anonymous JavaScript Functions"
|
||||
// http://johnjbarton.github.io/nonymous/index.html
|
||||
const objectProperty = /([\w\d]+)$/;
|
||||
const objectProperty = /([\w\d\$]+)$/;
|
||||
const arrayProperty = /\[(.*?)\]$/;
|
||||
const functionProperty = /([\w\d]+)[\/\.<]*?$/;
|
||||
const annonymousProperty = /([\w\d]+)\(\^\)$/;
|
||||
|
|
|
@ -7133,10 +7133,10 @@ class ObjectInspectorItem extends Component {
|
|||
onClick: onLabelClick ? event => {
|
||||
event.stopPropagation();
|
||||
|
||||
// If the user selected text, bail out.
|
||||
if (Utils.selection.documentHasSelection()) {
|
||||
return;
|
||||
}
|
||||
const objectProperty = /([\w\d\$]+)$/;
|
||||
const arrayProperty = /\[(.*?)\]$/;
|
||||
const functionProperty = /([\w\d]+)[\/\.<]*?$/;
|
||||
const annonymousProperty = /([\w\d]+)\(\^\)$/;
|
||||
|
||||
onLabelClick(item, {
|
||||
depth,
|
||||
|
@ -7164,4 +7164,4 @@ module.exports = ObjectInspectorItem;
|
|||
/***/ })
|
||||
|
||||
/******/ });
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче