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

Issue 11308227: Fix problems due to unit testing of the compiler. (Closed)

Created:
8 years ago by ngeoffray
Modified:
8 years ago
Reviewers:
ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix problems due to unit testing of the compiler. Committed: https://code.google.com/p/dart/source/detail?r=15400

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 chunk +1 line, -1 line 1 comment Download
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 chunk +2 lines, -0 lines 2 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M tests/utils/dummy_compiler_test.dart View 1 chunk +3 lines, -0 lines 3 comments Download

Messages

Total messages: 4 (0 generated)
ngeoffray
TBR to unbreak the builds.
8 years ago (2012-11-27 16:33:10 UTC) #1
ahe
LGTM, but perhaps reconsider if it would be better to turn missing interceptor classes into ...
8 years ago (2012-11-28 11:17:36 UTC) #2
ngeoffray
Thanks Peter https://codereview.chromium.org/11308227/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/11308227/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode1716 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:1716: if (backend.objectInterceptorClass == null) return; On 2012/11/28 ...
8 years ago (2012-11-28 11:42:03 UTC) #3
ahe
8 years ago (2012-11-28 12:26:21 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/11308227/diff/1/tests/utils/dummy_compiler_te...
File tests/utils/dummy_compiler_test.dart (right):

https://codereview.chromium.org/11308227/diff/1/tests/utils/dummy_compiler_te...
tests/utils/dummy_compiler_test.dart:37: } else if
(uri.path.endsWith('interceptors.dart')) {
On 2012/11/28 11:42:03, ngeoffray wrote:
> On 2012/11/28 11:17:36, ahe wrote:
> > Should be '/interceptors.dart', I think.
> 
> The other uri.path checks don't use '/'. Why would you use it here?

The one on line 35 doesn't because it is matching this shell filename wildcard:
*_patch.dart

The one on line 16 is matching the complete filename, so it includes the slash.

Powered by Google App Engine
This is Rietveld 408576698