File: main.js

package info (click to toggle)
node-rollup 3.29.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 53,520 kB
  • sloc: javascript: 115,081; sh: 26; makefile: 18
file content (77 lines) | stat: -rw-r--r-- 1,223 bytes parent folder | download | duplicates (3)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
const removed1 = {
	foo: () => {},
	foo: () => {},
	['f' + 'oo']: () => {}
};
removed1.foo();

const removed2 = {
	foo: () => console.log( 'effect' ),
	foo: () => {}
};
removed2.foo();

const removed3 = {
	['fo' + 'o']: function () {this.x = 1;},
	['f' + 'oo']: () => console.log( 'effect' ),
	foo: () => {}
};
removed3.foo();

const removed4 = {
	foo: () => {},
	foo: () => {},
	['f' + 'oo']: () => {}
};
removed4.foo.bar = 1;

const removed5 = {
	foo: globalThis.unknown,
	foo: () => {}
};
removed5.foo.bar = 1;

const removed6 = {
	['f' + 'oo']: globalThis.unknown,
	['fo' + 'o']: globalThis.unknown,
	foo: () => {}
};
removed6.foo.bar = 1;

const retained1 = {
	foo: () => {},
	foo: function () {this.x = 1;}
};
retained1.foo();

const retained2 = {
	foo: () => {},
	['f' + 'oo']: function () {this.x = 1;},
	['b' + 'ar']: () => {}
};
retained2.foo();

const retained3 = {
	['fo' + 'o']: () => {},
	['f' + 'oo']: () => {}
};
retained3.bar();

const retained4 = {
	foo: {},
	foo: globalThis.unknown
};
retained4.foo.bar = 1;

const retained5 = {
	foo: {},
	['f' + 'oo']: globalThis.unknown,
	['b' + 'ar']: {},
};
retained5.foo.bar = 1;

const retained6 = {
	['fo' + 'o']: {},
	['f' + 'oo']: {}
};
retained6.bar.baz = 1;