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

Unified Diff: frog/gen.dart

Issue 8985010: Move tests using frog 'native' extension from tests/language to frog/tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | frog/member.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/gen.dart
diff --git a/frog/gen.dart b/frog/gen.dart
index 08acc18cc7283c1a5a13f40d468079accd031eec..19b761ff3481aa3c26d259467636c7cfeadbd7b2 100644
--- a/frog/gen.dart
+++ b/frog/gen.dart
@@ -277,7 +277,7 @@ class WorldGenerator {
if (type.isHiddenNativeType) {
// This is a holder for static methods.
// TODO(sra): Generate only if used.
- writer.writeln('function ${type.jsname}() {}');
+ writer.writeln('var ${type.jsname} = {};');
} else {
writer.writeln('${type.jsname} = ${nativeName};');
}
« no previous file with comments | « no previous file | frog/member.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698