Chromium Code Reviews| Index: lib/runtime/_operations.js |
| diff --git a/lib/runtime/_operations.js b/lib/runtime/_operations.js |
| index b4fa1fa0542a23c8b06b34b3ca27429e0e7c1e48..2c9f437ba4734dd61ff788192d4035ad5746b191 100644 |
| --- a/lib/runtime/_operations.js |
| +++ b/lib/runtime/_operations.js |
| @@ -9,11 +9,13 @@ dart_library.library('dart_runtime/_operations', null, /* Imports */[ |
| ], /* Lazy Imports */[ |
| 'dart/async', |
| 'dart/core', |
| + 'dart/collection', |
|
Leaf
2015/06/15 17:53:09
Nit: Alphabetize?
vsm
2015/06/15 20:59:46
Done.
|
| + 'dart/_js_helper', |
| 'dart_runtime/_classes', |
| 'dart_runtime/_errors', |
| 'dart_runtime/_rtti', |
| 'dart_runtime/_types' |
| -], function(exports, async, core, classes, errors, rtti, types) { |
| +], function(exports, async, core, collection, _js_helper, classes, errors, rtti, types) { |
|
Leaf
2015/06/15 17:53:09
Nit: line length.
vsm
2015/06/15 20:59:46
Done.
|
| 'use strict'; |
| const getOwnNamesAndSymbols = dart_utils.getOwnNamesAndSymbols; |
| @@ -146,7 +148,6 @@ dart_library.library('dart_runtime/_operations', null, /* Imports */[ |
| } |
| exports.dcall = dcall; |
| - |
| /** Shared code for dsend, dindex, and dsetindex. */ |
| function callMethod(obj, name, args, displayName) { |
| let symbol = _canonicalFieldName(obj, name, args, displayName); |
| @@ -160,6 +161,11 @@ dart_library.library('dart_runtime/_operations', null, /* Imports */[ |
| } |
| exports.dsend = dsend; |
| + function dsendArray(obj, method, args) { |
| + return dsend(obj, method, ...args); |
| + } |
| + exports.dsendArray = dsendArray; |
| + |
| function dindex(obj, index) { |
| return callMethod(obj, 'get', [index], '[]'); |
| } |