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

Side by Side Diff: tests/isolate/static_function_lib.dart

Issue 68813002: Fix VM not accepting static methods for Isolate.spawn. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: removed throw_exception boolean. Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/isolate/isolate.status ('k') | tests/isolate/static_function_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 library static_function_testlib;
6 import "dart:isolate" show SendPort;
7
8 // Used by static_function_test.dart.
9
10 void function(port) { port.send("LIBTOP"); }
11 void _function(port) { port.send("_LIBTOP"); }
12
13 Function get privateFunction => _function;
14
15 class C {
16 static void function(SendPort port) { port.send("LIB"); }
17 static void _function(SendPort port) { port.send("LIBPRIVATE"); }
18 static Function get privateFunction => _function;
19 }
20
21 Function get privateClassFunction => _C.function;
22 Function get privateClassAndFunction => _C._function;
23
24 class _C {
25 static void function(SendPort port) { port.send("_LIB"); }
26 static void _function(SendPort port) { port.send("_LIBPRIVATE"); }
27 }
OLDNEW
« no previous file with comments | « tests/isolate/isolate.status ('k') | tests/isolate/static_function_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698