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

Unified Diff: lib/runtime/_operations.js

Issue 1186683005: dart:mirrors (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments 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') | tool/input_sdk/private/js_mirrors.dart » ('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..46d6ccd3cb9608c69601da7e8b5fa8e973df81d7 100644
--- a/lib/runtime/_operations.js
+++ b/lib/runtime/_operations.js
@@ -8,12 +8,15 @@
dart_library.library('dart_runtime/_operations', null, /* Imports */[
], /* Lazy Imports */[
'dart/async',
+ 'dart/collection',
'dart/core',
+ '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, collection, core, _js_helper, classes, errors, rtti,
+ types) {
'use strict';
const getOwnNamesAndSymbols = dart_utils.getOwnNamesAndSymbols;
@@ -146,7 +149,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 +162,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') | tool/input_sdk/private/js_mirrors.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698