File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
packages/@ember/debug/ember-inspector-support Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export default class DeprecationDebug extends DebugPort {
32
32
let grouped = this . groupedDeprecations ;
33
33
let deprecations = [ ] ;
34
34
for ( let i in grouped ) {
35
- if ( ! grouped . hasOwnProperty ( i ) ) {
35
+ if ( ! Object . prototype . hasOwnProperty . call ( grouped , i ) ) {
36
36
continue ;
37
37
}
38
38
deprecations . push ( grouped [ i ] ) ;
@@ -207,9 +207,8 @@ export default class DeprecationDebug extends DebugPort {
207
207
208
208
let error : any ;
209
209
210
- // When using new Error, we can't do the arguments check for Chrome. Alternatives are welcome
211
210
try {
212
- // @ts -ignore
211
+ // @ts -expect-error When using new Error, we can't do the arguments check for Chrome. Alternatives are welcome
213
212
__fail__ . fail ( ) ;
214
213
} catch ( e ) {
215
214
error = e ;
@@ -223,8 +222,8 @@ export default class DeprecationDebug extends DebugPort {
223
222
// Chrome
224
223
stack = error . stack
225
224
. replace ( / ^ \s + a t \s + / gm, '' )
226
- . replace ( / ^ ( [ ^ \ (] + ?) ( [ \n $ ] ) / gm, '{anonymous}($1)$2' )
227
- . replace ( / ^ O b j e c t .< a n o n y m o u s > \s * \( ( [ ^ \ )] + ) \) / gm, '{anonymous}($1)' )
225
+ . replace ( / ^ ( [ ^ ( ] + ?) ( [ \n $ ] ) / gm, '{anonymous}($1)$2' )
226
+ . replace ( / ^ O b j e c t .< a n o n y m o u s > \s * \( ( [ ^ ) ] + ) \) / gm, '{anonymous}($1)' )
228
227
. split ( '\n' ) ;
229
228
stack . shift ( ) ;
230
229
} else {
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ class InElementSupportProvider {
95
95
96
96
const pushElement = NewElementBuilder . prototype [ 'pushElement' ] ;
97
97
NewElementBuilder . prototype [ 'pushElement' ] = function ( ...args : any ) {
98
- // @ts -ignore
98
+ // @ts -expect-error monkey patching... could be removed, just some perf gain
99
99
pushElement . call ( this , ...args ) ;
100
100
args [ 0 ] . __emberInspectorParentNode = componentStack . slice ( - 1 ) [ 0 ] ;
101
101
} ;
@@ -104,7 +104,7 @@ class InElementSupportProvider {
104
104
const pushRemoteElement = NewElementBuilder . prototype . pushRemoteElement ;
105
105
NewElementBuilder . prototype . pushRemoteElement = function ( ...args : any ) {
106
106
currentElement = this . element ;
107
- // @ts -ignore
107
+ // @ts -expect-error monkey patching...
108
108
return pushRemoteElement . call ( this , ...args ) ;
109
109
} ;
110
110
You can’t perform that action at this time.
0 commit comments