error prawn #1734

Open
upandgo opened this Issue Jan 22, 2017 · 0 comments

Projects

None yet

1 participant

@upandgo
upandgo commented Jan 22, 2017

Hi. I am new to this, but I was reading through the issue tracker and found out there is loads of bugs that hasn't been fixed`? Some of them are over 1 y old! Plans?

Here is a few bugs I found. None of this combination should pass. But they do! I also know that some of them are early errors, and it is mentioned before. Also a half-completed early error ticket.

And I also noticed the ticket saying the tests of Esprima is wrong. Is that true?

Here is my finding:

'use strict'; +yield;
'use strict'; +let;
'use strict'; +package;
'use strict'; +yield;
function a(){ 'use strict'; function a(a=yield){}}
class A {set a(yield){}}
();
[([a])] = 12;
(a)=>12
(a, ...b);
var e = [a -= 12] = 5
function l() { '\12'; 'use strict' }
[ a -= 12 ] = 12;
(a,);
(((a, ...b)))
({ a = 0 });
/((((((((((((.))))))))))))\\13/
/}?/
class A extends B { constructor() { !{constructor() { super(); }}; } }
class A extends B { constructor() { !{get constructor() { super(); }}; } }
'use strict'; ({eval} = 0);
{ let a; var a; }
{ const a = 0; var a; }
{ const a = 0; const a = 0; }
(...a)
(a, ...b)
(((...a)))
0++
0--
let let;
({a: 0} = 0);
({get a(){}} = 0)
({a}) = 0;
({a: 0} = 0);
({a} += 0);
[...{a: 0}] = 0;
({a: 0} = 0);
for(({a: 0}) in 0);
for({a: 0} of 0);
for(([0]) in 0);
\\u0000
'use strict'; [eval] = 0
class A { f(eval){} };
class A { *f(eval){} }
use strict'; [arguments] = 0
for(let let;;);
let a, b, a;
let [a, ...a] = 0;
let a, [a] = 0;
const a;
for(const let = 0;;);
{ const a; }
function f(){ const a; }
for(const a = 0;;) label: function f(){}
for(;;) labelA: labelB: labelC: function f(){}
for(;;) labelA: labelB: labelC: function f(){}
for(let a;;) { var a; }
for(let let in 0);
continue;
label: continue label;
if(0) break
switch(0) { case 0: let a; default: let a; }for(const let = 0;;);
switch(0) { case 0: let a; default: var a; }
function f(a){ let a; }
unction f(a){ super.b }
!{ f(a, a){} };

plus all early errors

Try run all this tests with Esprima and they fail: https://github.com/shapesecurity/shift-parser-js/blob/es2016/test/early-errors.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment