14 lines
228 B
TypeScript
14 lines
228 B
TypeScript
//// [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) {
|
|
}
|