| 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..c6fbbb2104da8d124d4eacfd9f2beb5f318177a6 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,22 @@ 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);
|
| + function genericTypeConstructor(type) {
|
| + dart.throw(new core.StateError('This function cannot be called, ' + 'it should be compiled away.'));
|
| + }
|
| + dart.fn(genericTypeConstructor);
|
| // Exports:
|
| exports.JS = JS;
|
| exports.JSExportName = JSExportName;
|
| @@ -148,4 +164,7 @@ 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;
|
| + exports.genericTypeConstructor = genericTypeConstructor;
|
| });
|
|
|