/
Callback.js
41 lines (31 loc) · 1.14 KB
/
Callback.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
//>System.Exception
//>System.SystemException
$Class(System.SystemException, 'System', 'NotImplementedException');
System.NotImplementedException.prototype.$ctor$0 = function() {
System.SystemException.prototype.$ctor$1.call(this, "The requested feature is not implemented.");
return this;
};
$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.SourceTests_SimpleEvent = function() {
throw new System.NotImplementedException().$ctor$0();
};
$Class(System.SystemException, 'System', 'NotSupportedException');
System.NotSupportedException.prototype.$ctor$0 = function() {
System.SystemException.prototype.$ctor$1.call(this, "Operation is not supported.");
return this;
};
$Class(null, 'System', 'Delegate');
System.Delegate.Combine = function(a, b) {
throw new System.NotSupportedException().$ctor$0();
};
H8.GeneralTests.prototype.Callback = function(del) {
var CS$4$0000 = del == null;
if (!CS$4$0000) {
del();
}
CS$4$0000 = this.SimpleEvent == null;
if (!CS$4$0000) {
this.SimpleEvent();
}
this.SimpleEvent = System.Delegate.Combine(this.SimpleEvent, $Delegate(this, this.SourceTests_SimpleEvent));
};