[Scopes] Tracking issue for known original scope mapping tasks #5561
Comments
this is not mapped in perf.html TabBar#mouseDownListenerSTR:
|
STR:
|
Found a new case with nightly today. STR:
the missed bindings are: getBreakpointLocation, getBreakpointText, this corresponds with the functions defined in the module scope |
@loganfsmyth and i looked into it and it looks like it is related to the fact that a function and class are inside of a function body scope (function() { /* outer anonymous (variable level) */
/* lexical scope */
"use strict";
function getBreakpointText() {
console.log(2)
}
class Breakpoint {
}
})() |
Closing in favor of #6400 |
@loganfsmyth what are the minimum versions for libraries/tools (babel, ember, etc) that you fixed during this work? I want to make sure to document the work, which would help developers ensure the best debuggable output. So far I got:
|
@digitarald |
Not necessarily all required, but a general tracking issue for known tasks around the original scope work
Bugs
devtool
option (generated code for map runs insideeval()
)source-map
finds one that isn't ideal. We should exposeallGeneratedPositionsFor
so we can decide for ourselves. PRthis
is not mapped in perf.html'sTabBar#mouseDownListener
[Scopes] Allow bindings to not start at the mapping start in some cases, and optimize performance of mapping range loading #5967Preview/index.js
'saddExpression
(and other destructured/shorthand-referenced bindings) show as(unmapped)
[Scopes] Allow bindings to not start at the mapping start in some cases, and optimize performance of mapping range loading #5967(unmapped)
instead of(optimized out)
for module imports. [Scopes] Show "optimized out" instead of "unmapped" when resolving import declarations #5984actions/tabs.js:closeTab
[scopes] Search all original mapped ranges for possible matches, not just the #6040JSXIdentifier
nodes are not included in visitor.js's binding results [scopes] Detect JSX elements as variables in scope visitor. #6047_this
in a class property in this app Handle 'this' in expression mappings. #6072yield
statements toreturn
statements regenerator issue #342 regenerator PR #344t.isReferenced
(used in the parser worker's visitor.js) isn't great[ foo ] = []
does not recognizefoo
as a referencefoo = 42
is not recognized either{ prop: foo } = {}
is because it is an object property, even if it is inside a patternFeatures
Create sourcemaps for console rewritten expressionsConsider making the console autocomplete take original scopes into accountDocumentation
UI
Typescript / Angular
Declaration binding identifiers are not mapped consistently IssueHandled in PR [scopes] Handle edge-case mappings that come up in TS and other misc bugs #6092, though it would still be good for TS to do better around decorators and exportsSingle-identifier arrow arguments are not mapped to identifiers IssueVue
.vue
files [scopes] Support parsing .vue files from original maps. #6167EmberJS
Ember
global. These currently show as(unmapped)
and we should see if that is fixable PRsource-map
finds one that isn't ideal. We should callgetAllGeneratedPositions
PREcosystem
this
/arguments
/import
/inputSourceMap
Babel 7 fixes to Babel 6 Babel PRThe text was updated successfully, but these errors were encountered: