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

Issue 8232014: Fix named parameters handling of values that are falsy in JS. (Closed)

Created:
9 years, 2 months ago by John Lenz
Modified:
9 years, 2 months ago
Reviewers:
jat
CC:
reviews_dartlang.org, jgw
Visibility:
Public.

Description

Fix named parameters handling of values that are falsy in JS, also fixes issues with named parameters that whose "default" value should default to "null". Committed: https://code.google.com/p/dart/source/detail?r=358

Patch Set 1 #

Total comments: 10

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -40 lines) Patch
M compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java View 1 2 3 4 chunks +7 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/backend/js/ClosureJsBackend.java View 1 2 3 4 chunks +11 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java View 1 2 3 6 chunks +30 lines, -19 lines 0 comments Download
M compiler/java/com/google/dart/compiler/backend/js/JavascriptBackend.java View 1 2 3 2 chunks +0 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/util/AstUtil.java View 1 2 3 3 chunks +21 lines, -3 lines 0 comments Download
M tests/language/language.status View 1 2 3 2 chunks +1 line, -5 lines 2 comments Download

Messages

Total messages: 9 (0 generated)
John Lenz
9 years, 2 months ago (2011-10-11 20:11:38 UTC) #1
John Lenz
9 years, 2 months ago (2011-10-11 20:28:13 UTC) #2
jat
http://codereview.chromium.org/8232014/diff/1/compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java File compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java (right): http://codereview.chromium.org/8232014/diff/1/compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java#newcode556 compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java:556: return true;// false; What is this comment for? http://codereview.chromium.org/8232014/diff/1/compiler/java/com/google/dart/compiler/util/AstUtil.java ...
9 years, 2 months ago (2011-10-11 20:28:23 UTC) #3
jat
LGTM Please consider the other comments that weren't addressed in patch set 2, though as ...
9 years, 2 months ago (2011-10-11 20:31:01 UTC) #4
John Lenz
9 years, 2 months ago (2011-10-11 20:35:47 UTC) #5
John Lenz
http://codereview.chromium.org/8232014/diff/1/compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java File compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java (right): http://codereview.chromium.org/8232014/diff/1/compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java#newcode556 compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java:556: return true;// false; On 2011/10/11 20:28:23, jat wrote: > ...
9 years, 2 months ago (2011-10-11 20:35:55 UTC) #6
jat
LGTM
9 years, 2 months ago (2011-10-11 20:43:26 UTC) #7
jat
LGTM http://codereview.chromium.org/8232014/diff/6003/tests/language/language.status File tests/language/language.status (right): http://codereview.chromium.org/8232014/diff/6003/tests/language/language.status#newcode84 tests/language/language.status:84: #NamedParametersPassingFalseTest: Fail # Issue 67 Should this be ...
9 years, 2 months ago (2011-10-11 22:33:09 UTC) #8
John Lenz
9 years, 2 months ago (2011-10-11 22:35:38 UTC) #9
http://codereview.chromium.org/8232014/diff/6003/tests/language/language.status
File tests/language/language.status (right):

http://codereview.chromium.org/8232014/diff/6003/tests/language/language.stat...
tests/language/language.status:84: #NamedParametersPassingFalseTest: Fail #
Issue 67
On 2011/10/11 22:33:09, jat wrote:
> Should this be removed?

Done.

Powered by Google App Engine
This is Rietveld 408576698