11 lines
177 B
Coq
11 lines
177 B
Coq
|
|
static a;
|
||
|
|
|
||
|
|
restore() {
|
||
|
|
if(typeof b !== 'object') {
|
||
|
|
throw new Error('Static instance A does not exist!');
|
||
|
|
} else b.fun();
|
||
|
|
}
|
||
|
|
|
||
|
|
fun() {
|
||
|
|
console.log('hello from A');
|
||
|
|
}
|