2
Vote

Tests 13.1-3-3-s and others are missing a return statement

description

If the test succeeds, there is no return statement so the function returns undefined. This causes the test to fail.
The following tests are affected:
13.1-3-3-s
13.1-3-4-s
13.1-3-5-s
13.1-3-6-s
13.1-3-9-s
13.1-3-10-s
13.1-3-11-s
13.1-3-12-s
 
The code:
e instanceof SyntaxError
should be:
return e instanceof SyntaxError

comments

jwalden wrote Jan 1, 2011 at 9:39 PM

http://es5conform.codeplex.com/workitem/29141 has a patch that also fixes this, although I'm not sure offhand if it fixes all the tests here -- probably, but not assuredly.

wrote Feb 13, 2013 at 2:09 AM