15 lines
228 B
JavaScript
15 lines
228 B
JavaScript
|
//// [errorHandlingInInstanceOf.ts]
|
||
|
if (x instanceof String) {
|
||
|
}
|
||
|
|
||
|
var y: any;
|
||
|
if (y instanceof UnknownType) {
|
||
|
}
|
||
|
|
||
|
//// [errorHandlingInInstanceOf.js]
|
||
|
if (x instanceof String) {
|
||
|
}
|
||
|
var y;
|
||
|
if (y instanceof UnknownType) {
|
||
|
}
|