error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.


!!! error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== nestedSuperCallEmit.ts (0 errors) ====
    // https://github.com/microsoft/TypeScript/issues/55646
    abstract class Foo {
        constructor(shouldThrow: boolean) {
            if (shouldThrow) {
                throw new Error('Please retry');
            } else {
                console.log('OK');
            }
        }
    }
    
    class Bar extends Foo {
        constructor() {
            try {
                super(true);
            } catch (e: unknown) {
                console.log('Error: ' + (e as Error).message);
                // retry
                super(false);
            }
        }
    }
    
    new Bar();
    