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

Issue 556833004: Check against the correct type when decoding runtime types. (Closed)

Created:
6 years, 3 months ago by karlklose
Modified:
6 years, 3 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Check against the correct type when decoding runtime types. The type [Type] is represented by its constructor function in the runtime type system, and if it used as a type argument, we install a $isType-tag on it for subtype checks. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=40045

Patch Set 1 #

Patch Set 2 : Add test. #

Patch Set 3 : Update type comment. #

Total comments: 2

Patch Set 4 : Add comparison of result. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -3 lines) Patch
M sdk/lib/_internal/compiler/js_lib/js_mirrors.dart View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
A tests/lib/mirrors/type_mirror_for_type_test.dart View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
karlklose
6 years, 3 months ago (2014-09-09 14:19:00 UTC) #1
floitsch
LGTM. But needs a test, and more information (either in the test, or in the ...
6 years, 3 months ago (2014-09-09 14:37:27 UTC) #2
karlklose
On 2014/09/09 14:37:27, floitsch wrote: > LGTM. > But needs a test, and more information ...
6 years, 3 months ago (2014-09-09 15:07:31 UTC) #3
floitsch
Still LGTM. https://codereview.chromium.org/556833004/diff/40001/tests/lib/mirrors/type_mirror_for_type_test.dart File tests/lib/mirrors/type_mirror_for_type_test.dart (right): https://codereview.chromium.org/556833004/diff/40001/tests/lib/mirrors/type_mirror_for_type_test.dart#newcode30 tests/lib/mirrors/type_mirror_for_type_test.dart:30: print(declarationMirror.returnType); Expect.equals(Type, declarationMirror.returnType);
6 years, 3 months ago (2014-09-09 15:26:25 UTC) #4
karlklose
https://codereview.chromium.org/556833004/diff/40001/tests/lib/mirrors/type_mirror_for_type_test.dart File tests/lib/mirrors/type_mirror_for_type_test.dart (right): https://codereview.chromium.org/556833004/diff/40001/tests/lib/mirrors/type_mirror_for_type_test.dart#newcode30 tests/lib/mirrors/type_mirror_for_type_test.dart:30: print(declarationMirror.returnType); On 2014/09/09 15:26:25, floitsch wrote: > Expect.equals(Type, declarationMirror.returnType); ...
6 years, 3 months ago (2014-09-09 17:17:26 UTC) #5
karlklose
6 years, 3 months ago (2014-09-09 17:29:00 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 40045 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698