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 {
3232 let grouped = this . groupedDeprecations ;
3333 let deprecations = [ ] ;
3434 for ( let i in grouped ) {
35- if ( ! grouped . hasOwnProperty ( i ) ) {
35+ if ( ! Object . prototype . hasOwnProperty . call ( grouped , i ) ) {
3636 continue ;
3737 }
3838 deprecations . push ( grouped [ i ] ) ;
@@ -207,9 +207,8 @@ export default class DeprecationDebug extends DebugPort {
207207
208208 let error : any ;
209209
210- // When using new Error, we can't do the arguments check for Chrome. Alternatives are welcome
211210 try {
212- // @ts -ignore
211+ // @ts -expect-error When using new Error, we can't do the arguments check for Chrome. Alternatives are welcome
213212 __fail__ . fail ( ) ;
214213 } catch ( e ) {
215214 error = e ;
@@ -223,8 +222,8 @@ export default class DeprecationDebug extends DebugPort {
223222 // Chrome
224223 stack = error . stack
225224 . 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)' )
228227 . split ( '\n' ) ;
229228 stack . shift ( ) ;
230229 } else {
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ class InElementSupportProvider {
9595
9696 const pushElement = NewElementBuilder . prototype [ 'pushElement' ] ;
9797 NewElementBuilder . prototype [ 'pushElement' ] = function ( ...args : any ) {
98- // @ts -ignore
98+ // @ts -expect-error monkey patching... could be removed, just some perf gain
9999 pushElement . call ( this , ...args ) ;
100100 args [ 0 ] . __emberInspectorParentNode = componentStack . slice ( - 1 ) [ 0 ] ;
101101 } ;
@@ -104,7 +104,7 @@ class InElementSupportProvider {
104104 const pushRemoteElement = NewElementBuilder . prototype . pushRemoteElement ;
105105 NewElementBuilder . prototype . pushRemoteElement = function ( ...args : any ) {
106106 currentElement = this . element ;
107- // @ts -ignore
107+ // @ts -expect-error monkey patching...
108108 return pushRemoteElement . call ( this , ...args ) ;
109109 } ;
110110
You can’t perform that action at this time.
0 commit comments