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

Issue 2321973002: Make dart2js not consider dart:io there if the library is unsupported. (Closed)

Created:
4 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
4 years, 3 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make dart2js not consider dart:io there if the library is unsupported. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/bcdf0a1f125816b97590734370a9e6ef99a10881

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comment #

Patch Set 3 : Also test conditions using string compare. #

Total comments: 4

Patch Set 4 : Address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -1 line) Patch
M pkg/compiler/lib/src/apiimpl.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
A tests/language/conditional_import_string_test.dart View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A tests/language/conditional_import_test.dart View 1 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Lasse Reichstein Nielsen
I have no idea how to test this, but it fixes my problem.
4 years, 3 months ago (2016-09-08 12:16:26 UTC) #2
Siggi Cherem (dart-lang)
The change in apiimpl looks good to me. For testing, we can add this as ...
4 years, 3 months ago (2016-09-08 15:47:09 UTC) #3
Lasse Reichstein Nielsen
On 2016/09/08 15:47:09, Siggi Cherem (dart-lang) wrote: > The change in apiimpl looks good to ...
4 years, 3 months ago (2016-09-12 06:56:35 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/2321973002/diff/1/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/2321973002/diff/1/pkg/compiler/lib/src/apiimpl.dart#newcode391 pkg/compiler/lib/src/apiimpl.dart:391: if (compiler.resolvedUriTranslator.sdkLibraries[libraryName].scheme == I was considering doing that, but ...
4 years, 3 months ago (2016-09-12 08:51:16 UTC) #5
Lasse Reichstein Nielsen
PTAL
4 years, 3 months ago (2016-09-12 12:38:26 UTC) #6
Siggi Cherem (dart-lang)
changes to dart2js lgtm, just a few suggestions below for the tests https://codereview.chromium.org/2321973002/diff/40001/tests/language/conditional_import_string_test.dart File tests/language/conditional_import_string_test.dart ...
4 years, 3 months ago (2016-09-12 15:53:40 UTC) #7
Lasse Reichstein Nielsen
https://codereview.chromium.org/2321973002/diff/40001/tests/language/conditional_import_string_test.dart File tests/language/conditional_import_string_test.dart (right): https://codereview.chromium.org/2321973002/diff/40001/tests/language/conditional_import_string_test.dart#newcode9 tests/language/conditional_import_string_test.dart:9: import "conditional_import_test.dart" Ack, yes. https://codereview.chromium.org/2321973002/diff/40001/tests/language/conditional_import_string_test.dart#newcode23 tests/language/conditional_import_string_test.dart:23: if (io) { ...
4 years, 3 months ago (2016-09-12 17:58:15 UTC) #8
Siggi Cherem (dart-lang)
I see - thanks for clarifying. LGTM
4 years, 3 months ago (2016-09-12 19:13:45 UTC) #9
Lasse Reichstein Nielsen
4 years, 3 months ago (2016-09-13 08:27:22 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
bcdf0a1f125816b97590734370a9e6ef99a10881 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698