File tree 1 file changed +18
-19
lines changed
1 file changed +18
-19
lines changed Original file line number Diff line number Diff line change 1
- import { Component } from ' @angular/core' ;
1
+ import { Component } from " @angular/core" ;
2
2
import * as Sentry from "@sentry/browser" ;
3
3
4
- @Component ( {
5
- selector : 'app-root' ,
6
- templateUrl : './app.component.html' ,
7
- styleUrls : [ './app.component.css' ]
8
- } )
9
-
10
4
function block ( time ) {
11
5
const start = performance . now ( ) ;
12
6
while ( performance . now ( ) - start < time ) { }
13
7
}
14
8
9
+ @Component ( {
10
+ selector : "app-root" ,
11
+ templateUrl : "./app.component.html" ,
12
+ styleUrls : [ "./app.component.css" ] ,
13
+ } )
15
14
export class AppComponent {
16
- color = ' black' ;
17
- textValue = '' ;
18
- currentUser = '' ;
15
+ color = " black" ;
16
+ textValue = "" ;
17
+ currentUser = "" ;
19
18
20
19
changeColor ( ) {
21
20
var that = this ;
22
- this . color = ' red' ;
21
+ this . color = " red" ;
23
22
setTimeout ( ( ) => {
24
- that . color = ' black'
23
+ that . color = " black" ;
25
24
} , 1500 ) ;
26
25
}
27
26
28
27
handleSubmit ( ) {
29
28
this . currentUser = this . textValue ;
30
- Sentry . configureScope ( scope => {
31
- scope . setUser ( { email : this . currentUser } ) ;
29
+ Sentry . configureScope ( ( scope ) => {
30
+ scope . setUser ( { email : this . currentUser } ) ;
32
31
} ) ;
33
32
}
34
33
35
34
malformed ( ) {
36
- decodeURIComponent ( '%' ) ;
35
+ decodeURIComponent ( "%" ) ;
37
36
}
38
37
39
38
// ERRORS
40
39
notAFunctionError ( ) {
41
- var someArray = [ { func : function ( ) { } } ] ;
40
+ var someArray = [ { func : function ( ) { } } ] ;
42
41
someArray [ 1 ] . func ( ) ;
43
42
}
44
43
45
44
uriError ( ) {
46
- decodeURIComponent ( '%' ) ;
45
+ decodeURIComponent ( "%" ) ;
47
46
}
48
47
49
48
syntaxError ( ) {
50
- eval ( ' foo bar' ) ;
49
+ eval ( " foo bar" ) ;
51
50
}
52
51
53
52
rangeError ( ) {
54
- throw new RangeError ( ' Parameter must be between 1 and 100' ) ;
53
+ throw new RangeError ( " Parameter must be between 1 and 100" ) ;
55
54
}
56
55
57
56
profilingIssue ( ) {
You can’t perform that action at this time.
0 commit comments