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

Issue 2071593003: Allow constant static fields to overwrite defaults (Closed)

Created:
4 years, 6 months ago by stanm
Modified:
4 years, 6 months ago
Reviewers:
Jennifer Messerly
CC:
dev-compiler+reviews_dartlang.org, vsm, Jennifer Messerly, Leaf, andrewkrieger
Base URL:
https://github.com/dart-lang/dev_compiler@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Allow constant static fields to overwrite defaults Now one can overwrite fields like 'name' as 'static const' fields in their class definition and not get runtime errors. BUG= https://github.com/dart-lang/dev_compiler/issues/587 R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/398132682375fb06e9e29d023bca3f95e1c68372

Patch Set 1 #

Total comments: 3

Patch Set 2 : Revert initial change and just add 'name' to blacklist #

Patch Set 3 : Merge master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M lib/src/compiler/js_names.dart View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (4 generated)
stanm
4 years, 6 months ago (2016-06-15 20:27:30 UTC) #3
Jennifer Messerly
https://codereview.chromium.org/2071593003/diff/1/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/2071593003/diff/1/lib/src/compiler/code_generator.dart#newcode3408 lib/src/compiler/code_generator.dart:3408: !JS.invalidStaticFieldName(fieldName) && So this check above was supposed to ...
4 years, 6 months ago (2016-06-15 20:28:53 UTC) #5
stanm
https://codereview.chromium.org/2071593003/diff/1/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/2071593003/diff/1/lib/src/compiler/code_generator.dart#newcode3408 lib/src/compiler/code_generator.dart:3408: !JS.invalidStaticFieldName(fieldName) && On 2016/06/15 20:28:53, John Messerly wrote: > ...
4 years, 6 months ago (2016-06-15 20:51:05 UTC) #6
stanm
https://codereview.chromium.org/2071593003/diff/1/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/2071593003/diff/1/lib/src/compiler/code_generator.dart#newcode3411 lib/src/compiler/code_generator.dart:3411: js.statement('Object.defineProperty(#, #, { value: # });', [ Reverted in ...
4 years, 6 months ago (2016-06-15 20:51:40 UTC) #7
Jennifer Messerly
LGTM!
4 years, 6 months ago (2016-06-15 20:57:52 UTC) #8
stanm
4 years, 6 months ago (2016-06-15 21:03:41 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
398132682375fb06e9e29d023bca3f95e1c68372 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698