Accept baseline

This commit is contained in:
Tingan Ho 2017-08-02 17:53:46 +02:00
parent 192628510f
commit 053b708bf1
6 changed files with 80 additions and 7 deletions

View file

@ -0,0 +1,22 @@
//// [emitter.noCatchBinding.esnext.ts]
function f() {
try { } catch { }
try { } catch {
try { } catch { }
}
try { } catch { } finally { }
}
//// [emitter.noCatchBinding.esnext.js]
function f() {
try { }
catch { }
try { }
catch {
try { }
catch { }
}
try { }
catch { }
finally { }
}

View file

@ -0,0 +1,10 @@
=== tests/cases/conformance/emitter/esnext/noCatchBinding/emitter.noCatchBinding.esnext.ts ===
function f() {
>f : Symbol(f, Decl(emitter.noCatchBinding.esnext.ts, 0, 0))
try { } catch { }
try { } catch {
try { } catch { }
}
try { } catch { } finally { }
}

View file

@ -0,0 +1,10 @@
=== tests/cases/conformance/emitter/esnext/noCatchBinding/emitter.noCatchBinding.esnext.ts ===
function f() {
>f : () => void
try { } catch { }
try { } catch {
try { } catch { }
}
try { } catch { } finally { }
}

View file

@ -2,13 +2,20 @@
function fn() {
try { } catch { }
try { } catch {
try { } catch {
try { } catch { }
}
try { } catch { }
}
try { } catch (x) { var x: any; }
try { } finally { }
try { } catch { } finally { }
try { } catch(z) { } finally { }
try { } catch (z) { } finally { }
}
//// [tryStatements.js]
@ -16,13 +23,23 @@ function fn() {
try { }
catch (_a) { }
try { }
catch (_b) {
try { }
catch (_c) {
try { }
catch (_d) { }
}
try { }
catch (_e) { }
}
try { }
catch (x) {
var x;
}
try { }
finally { }
try { }
catch (_b) { }
catch (_f) { }
finally { }
try { }
catch (z) { }

View file

@ -4,14 +4,21 @@ function fn() {
try { } catch { }
try { } catch {
try { } catch {
try { } catch { }
}
try { } catch { }
}
try { } catch (x) { var x: any; }
>x : Symbol(x, Decl(tryStatements.ts, 3, 19))
>x : Symbol(x, Decl(tryStatements.ts, 3, 27))
>x : Symbol(x, Decl(tryStatements.ts, 10, 19))
>x : Symbol(x, Decl(tryStatements.ts, 10, 27))
try { } finally { }
try { } catch { } finally { }
try { } catch(z) { } finally { }
>z : Symbol(z, Decl(tryStatements.ts, 9, 18))
try { } catch (z) { } finally { }
>z : Symbol(z, Decl(tryStatements.ts, 16, 19))
}

View file

@ -4,6 +4,13 @@ function fn() {
try { } catch { }
try { } catch {
try { } catch {
try { } catch { }
}
try { } catch { }
}
try { } catch (x) { var x: any; }
>x : any
>x : any
@ -12,6 +19,6 @@ function fn() {
try { } catch { } finally { }
try { } catch(z) { } finally { }
try { } catch (z) { } finally { }
>z : any
}