Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Issue 6396008: Fix es5conform.status expectation file. (Closed)

Created:
9 years, 10 months ago by Martin Maly
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix es5conform.status expectation file. The strict mode tests in es5conform suite were disabled until now. The propagation of strict mode flag into eval enabled them but there are failures due to: * unimplemented features of strict mode * some incorrect tests in the suite. TBR=ager@chromium.org, lrn@chromium.org BUG= TEST=es5conform

Patch Set 1 #

Total comments: 4

Patch Set 2 : CR Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -67 lines) Patch
M test/es5conform/es5conform.status View 1 3 chunks +115 lines, -67 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Martin Maly
Hi Mads, Lasse, should have anticipated this one... The strict mode part of the es5conform ...
9 years, 10 months ago (2011-02-04 22:13:13 UTC) #1
Rico
Drive by, A large fraction of your comments are more than 80 characters wide. Cheers, ...
9 years, 10 months ago (2011-02-07 07:42:25 UTC) #2
Lasse Reichstein
LGTM http://codereview.chromium.org/6396008/diff/1/test/es5conform/es5conform.status File test/es5conform/es5conform.status (right): http://codereview.chromium.org/6396008/diff/1/test/es5conform/es5conform.status#newcode399 test/es5conform/es5conform.status:399: # test uses implicit return (which doesn't seem ...
9 years, 10 months ago (2011-02-07 08:27:18 UTC) #3
Mads Ager (chromium)
LGTM, thanks.
9 years, 10 months ago (2011-02-07 10:25:58 UTC) #4
Martin Maly
9 years, 10 months ago (2011-02-07 16:50:14 UTC) #5
Fixed line lengths and comments for invalid tests. Thanks!

http://codereview.chromium.org/6396008/diff/1/test/es5conform/es5conform.status
File test/es5conform/es5conform.status (right):

http://codereview.chromium.org/6396008/diff/1/test/es5conform/es5conform.stat...
test/es5conform/es5conform.status:399: # test uses implicit return (which
doesn't seem to work in v8 or safari jsc)
On 2011/02/07 08:27:18, Lasse Reichstein wrote:
> I think it's because the test was originally written for a harness where
> returning undefined was considered a success - and the author just forgot to
> return the result of the "instanceof" test.
> Still a bad test.
> 
> (I'm not aware of any JS implementation with "implicit return", so just say
that
> it fails to return a true value).

Done.

http://codereview.chromium.org/6396008/diff/1/test/es5conform/es5conform.stat...
test/es5conform/es5conform.status:434: # Invalid test case per ECMA-262 5th
Edition, 10.1.1, bullet 4
On 2011/02/07 08:27:18, Lasse Reichstein wrote:
> The test seems correct to me.
> The Function call creates a function that is not strict, so it should be
allowed
> to have two "a" parameters. I.e., the result of the test should be to not
throw.
> How do we fail it?

Actually, the reason is same as above. On success, the test fails to return
true, returning undefined, leading to failure.

Powered by Google App Engine
This is Rietveld 408576698