-
Notifications
You must be signed in to change notification settings - Fork 87
/
strict-lib.js
51 lines (35 loc) · 966 Bytes
/
strict-lib.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
'use strict'
var deprecate = require('../..')('strict-lib')
exports.old = function () {
deprecate('old')
}
exports.oldfn = deprecate.function(fn, 'oldfn')
exports.oldfnauto = deprecate.function(fn)
exports.oldfnautoanon = deprecate.function(function () {})
exports.propa = 'thingie'
exports.propauto = 'thingie'
deprecate.property(exports, 'propa', 'propa gone')
deprecate.property(exports, 'propauto')
exports.automsg = function () {
deprecate()
}
exports.automsgnamed = function automsgnamed() {
deprecate()
}
exports.automsganon = function () {
(function () { deprecate() }())
}
exports.fnprop = function thefn() {}
exports.fnprop.propa = 'thingie'
exports.fnprop.propautomsg = 'thingie'
deprecate.property(exports.fnprop, 'propa', 'fn propa gone')
deprecate.property(exports.fnprop, 'propautomsg')
exports.layerfn = function () {
exports.oldfn()
}
exports.layerprop = function () {
exports.propa
}
function fn(a1, a2) {
return a2
}