UNPKG
jsctags
Version:
latest (5.2.2)
5.2.2
5.2.1
5.2.0
5.1.1
5.1.0
5.0.1
5.0.0
4.0.1
4.0.0
3.3.0
3.2.1
3.2.0
3.1.0
3.0.1
3.0.0
2.1.0
2.0.1
2.0.0
1.0.0
0.1.0
jsctags generator
github.com/ramitos/jsctags
ramitos/jsctags
jsctags
/
test
/
cases
/
autothis.js
13 lines
(10 loc)
•
226 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
function
Bar
(
) {
this
.
prop
=
10
; }
Bar
.
prototype
.
hallo
=
function
(
) {
this
;
//: Bar
this
.
prop
;
//: number
};
Bar
.
prototype
.
fn2
=
function
(
) {
this
;
//: Date
};
Date
.
prototype
.
fn2
=
Bar
.
prototype
.
fn2
;
new
Date
().
fn2
();