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

Unified Diff: lib/runtime/_operations.js

Issue 1186683005: dart:mirrors (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Add spreadcalls flag check Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/runtime/dart/_js_mirrors.js » ('j') | lib/runtime/dart_runtime.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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], '[]');
}
« no previous file with comments | « no previous file | lib/runtime/dart/_js_mirrors.js » ('j') | lib/runtime/dart_runtime.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698