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

Issue 12051031: Added "dart:chrome" to the compiler's list of libraries allowed to use convertDartClosureToJS(), an… (Closed)

Created:
7 years, 11 months ago by sashab
Modified:
7 years, 11 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Added "dart:chrome" to the compiler's list of libraries allowed to use convertDartClosureToJS(), and other internal library functions. Committed: https://code.google.com/p/dart/source/detail?r=17615

Patch Set 1 #

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

Messages

Total messages: 3 (0 generated)
sashab
7 years, 11 months ago (2013-01-23 04:36:30 UTC) #1
blois
Looks good to me, but should wait for ahe's approval.
7 years, 11 months ago (2013-01-23 17:07:49 UTC) #2
ahe
7 years, 11 months ago (2013-01-23 20:05:22 UTC) #3
LGTM

This enables the use of all "foreign" functions, not just JS. Be careful :-)

This reminds me: be extra careful with the type annotations used in the JS
function. I suggest using sra as a local reviewer for that. Stephen knows this
system very well and can help you avoid common mistakes.

What is tricky about the type annotations is that they are "concrete" type, mean
exactly the class referred to, not its subclasses. Also, not null. So most of
the time, use an empty string (dynamic) or "primitive" types when you know that
it can't be null.

Powered by Google App Engine
This is Rietveld 408576698