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

Side by Side Diff: pkg/js/lib/src/varargs.dart

Issue 2750123003: Run dartfmt on package:js (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Declarations for variable arguments support 5 /// Declarations for variable arguments support
6 /// (rest params and spread operator). 6 /// (rest params and spread operator).
7 /// 7 ///
8 /// These are currently *not* supported by dart2js or Dartium. 8 /// These are currently *not* supported by dart2js or Dartium.
9 library js.varargs; 9 library js.varargs;
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 /// 51 ///
52 /// Will be compiled to ES6 code like the following: 52 /// Will be compiled to ES6 code like the following:
53 /// 53 ///
54 /// foo(a, b, ...others) 54 /// foo(a, b, ...others)
55 /// 55 ///
56 /// Which is roughly equivalent to the following ES5 code: 56 /// Which is roughly equivalent to the following ES5 code:
57 /// 57 ///
58 /// foo.apply(null, [a, b].concat(others)) 58 /// foo.apply(null, [a, b].concat(others))
59 /// 59 ///
60 dynamic spread(args) { 60 dynamic spread(args) {
61 throw new StateError( 61 throw new StateError('The spread function cannot be called, '
62 'The spread function cannot be called, '
63 'it should be compiled away.'); 62 'it should be compiled away.');
64 } 63 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698