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

Unified Diff: dart/sdk/lib/_internal/compiler/samples/leap/leap_server.dart

Issue 12033003: Deferred (aka lazy) loading of static functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 months 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
Index: dart/sdk/lib/_internal/compiler/samples/leap/leap_server.dart
diff --git a/dart/sdk/lib/_internal/compiler/samples/leap/leap_server.dart b/dart/sdk/lib/_internal/compiler/samples/leap/leap_server.dart
index adf8cbc746ff71b4690b23ac4cd92b05deb64305..e4f281142491158c713cc3b4df0ed6743b735196 100644
--- a/dart/sdk/lib/_internal/compiler/samples/leap/leap_server.dart
+++ b/dart/sdk/lib/_internal/compiler/samples/leap/leap_server.dart
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+library leap_server;
+
import 'dart:io';
class Conversation {
@@ -39,7 +41,7 @@ class Conversation {
String path = request.path;
if (path == '/') return redirect('/$landingPage');
if (path == '/favicon.ico') {
- path = '/lib/_internal/dartdoc/static/favicon.ico';
+ path = '/sdk/lib/_internal/dartdoc/static/favicon.ico';
}
if (path.contains('..') || path.contains('%')) return notFound();
var f = new File("./$path");

Powered by Google App Engine
This is Rietveld 408576698