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

Side by Side Diff: sdk/lib/js/dartium/js_dartium.dart

Issue 147153002: Re-enable mirrors/immutable_collections_test on Dartium. Fix a bad constructor in Dartium's dart:js… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Support for interoperating with JavaScript. 6 * Support for interoperating with JavaScript.
7 * 7 *
8 * This library provides access to JavaScript objects from Dart, allowing 8 * This library provides access to JavaScript objects from Dart, allowing
9 * Dart code to get and set properties, and call methods of JavaScript objects 9 * Dart code to get and set properties, and call methods of JavaScript objects
10 * and invoke JavaScript functions. The library takes care of converting 10 * and invoke JavaScript functions. The library takes care of converting
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 232 }
233 } 233 }
234 234
235 _callMethod(String name, List args) native "JsObject_callMethod"; 235 _callMethod(String name, List args) native "JsObject_callMethod";
236 } 236 }
237 237
238 /** 238 /**
239 * Proxies a JavaScript Function object. 239 * Proxies a JavaScript Function object.
240 */ 240 */
241 class JsFunction extends JsObject { 241 class JsFunction extends JsObject {
242 JsFunction.internal(); 242 JsFunction.internal() : super.internal();
243 243
244 /** 244 /**
245 * Returns a [JsFunction] that captures its 'this' binding and calls [f] 245 * Returns a [JsFunction] that captures its 'this' binding and calls [f]
246 * with the value of this passed as the first argument. 246 * with the value of this passed as the first argument.
247 */ 247 */
248 factory JsFunction.withThis(Function f) => _withThis(f); 248 factory JsFunction.withThis(Function f) => _withThis(f);
249 249
250 /** 250 /**
251 * Invokes the JavaScript function with arguments [args]. If [thisArg] is 251 * Invokes the JavaScript function with arguments [args]. If [thisArg] is
252 * supplied it is the value of `this` for the invocation. 252 * supplied it is the value of `this` for the invocation.
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 /** 373 /**
374 * Returns a method that can be called with an arbitrary number (for n less 374 * Returns a method that can be called with an arbitrary number (for n less
375 * than 11) of arguments without violating Dart type checks. 375 * than 11) of arguments without violating Dart type checks.
376 */ 376 */
377 Function _wrapAsDebuggerVarArgsFunction(JsFunction jsFunction) => 377 Function _wrapAsDebuggerVarArgsFunction(JsFunction jsFunction) =>
378 ([a1=_UNDEFINED, a2=_UNDEFINED, a3=_UNDEFINED, a4=_UNDEFINED, 378 ([a1=_UNDEFINED, a2=_UNDEFINED, a3=_UNDEFINED, a4=_UNDEFINED,
379 a5=_UNDEFINED, a6=_UNDEFINED, a7=_UNDEFINED, a8=_UNDEFINED, 379 a5=_UNDEFINED, a6=_UNDEFINED, a7=_UNDEFINED, a8=_UNDEFINED,
380 a9=_UNDEFINED, a10=_UNDEFINED]) => 380 a9=_UNDEFINED, a10=_UNDEFINED]) =>
381 jsFunction._applyDebuggerOnly(_stripUndefinedArgs( 381 jsFunction._applyDebuggerOnly(_stripUndefinedArgs(
382 [a1,a2,a3,a4,a5,a6,a7,a8,a9,a10])); 382 [a1,a2,a3,a4,a5,a6,a7,a8,a9,a10]));
OLDNEW
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698