5337fc001e
Note: need new package:js release before merging this in (https://github.com/dart-lang/sdk/issues/24623). Maybe it's time to think again about sneaking JsName + JsPeerInterface into it? (https://github.com/dart-lang/dev_compiler/issues/135) BUG=https://github.com/dart-lang/dev_compiler/issues/310 R=jmesserly@google.com Review URL: https://codereview.chromium.org/1424133007 .
13 lines
275 B
Dart
13 lines
275 B
Dart
import 'package:js/src/varargs.dart' as js;
|
|
import 'package:js/src/varargs.dart' show rest, spread;
|
|
|
|
varargsTest(x, @js.rest others) {
|
|
var args = [1, others];
|
|
x.call(js.spread(args));
|
|
}
|
|
|
|
varargsTest2(x, @rest others) {
|
|
var args = [1, others];
|
|
x.call(spread(args));
|
|
}
|