Index: lib/runtime/dart/_foreign_helper.js |
diff --git a/lib/runtime/dart/_foreign_helper.js b/lib/runtime/dart/_foreign_helper.js |
index 34128a221d41db6404b46438a7c79e4e085204b5..13bbdc2caa7b24693bfd8076d7275f83da687a4f 100644 |
--- a/lib/runtime/dart/_foreign_helper.js |
+++ b/lib/runtime/dart/_foreign_helper.js |
@@ -1,5 +1,5 @@ |
dart_library.library('dart/_foreign_helper', null, /* Imports */[ |
- "dart/_runtime", |
+ 'dart/_runtime', |
'dart/core' |
], /* Lazy imports */[ |
], function(exports, dart, core) { |
@@ -117,6 +117,18 @@ dart_library.library('dart/_foreign_helper', null, /* Imports */[ |
return a + b; |
} |
dart.fn(JS_STRING_CONCAT, core.String, [core.String, core.String]); |
+ class _Rest extends core.Object { |
+ _Rest() { |
+ } |
+ } |
+ dart.setSignature(_Rest, { |
+ constructors: () => ({_Rest: [_Rest, []]}) |
+ }); |
+ const rest = dart.const(new _Rest()); |
+ function spread(args) { |
+ dart.throw(new core.StateError('The spread function cannot be called, ' + 'it should be compiled away.')); |
+ } |
+ dart.fn(spread); |
// Exports: |
exports.JS = JS; |
exports.JSExportName = JSExportName; |
@@ -148,4 +160,6 @@ dart_library.library('dart/_foreign_helper', null, /* Imports */[ |
exports.JS_EFFECT = JS_EFFECT; |
exports.JS_CONST = JS_CONST; |
exports.JS_STRING_CONCAT = JS_STRING_CONCAT; |
+ exports.rest = rest; |
+ exports.spread = spread; |
}); |