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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/private/native_helper.dart

Issue 2621543004: Cleanup references to the old DDC repo (Closed)
Patch Set: Linkify issues Created 3 years, 11 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
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/private/js_helper.dart ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart._js_helper; 5 part of dart._js_helper;
6 6
7 7
8 /** 8 /**
9 * Sets a JavaScript property on an object. 9 * Sets a JavaScript property on an object.
10 */ 10 */
11 void defineProperty(var obj, String property, var value) { 11 void defineProperty(var obj, String property, var value) {
12 JS('void', 12 JS('void',
13 'Object.defineProperty(#, #, ' 13 'Object.defineProperty(#, #, '
14 '{value: #, enumerable: false, writable: true, configurable: true})', 14 '{value: #, enumerable: false, writable: true, configurable: true})',
15 obj, 15 obj,
16 property, 16 property,
17 value); 17 value);
18 } 18 }
19 19
20 // Obsolete in dart dev compiler. Added only so that the same version of 20 // Obsolete in dart dev compiler. Added only so that the same version of
21 // dart:html can be used in dart2js an dev compiler. 21 // dart:html can be used in dart2js an dev compiler.
22 /*=F*/ convertDartClosureToJS /*<F>*/ (/*=F*/ closure, int arity) { 22 /*=F*/ convertDartClosureToJS /*<F>*/ (/*=F*/ closure, int arity) {
23 return closure; 23 return closure;
24 } 24 }
25 25
26 // Warning: calls to these methods need to be removed before custom elements 26 // Warning: calls to these methods need to be removed before custom elements
27 // and cross-frame dom objects behave correctly in ddc. 27 // and cross-frame dom objects behave correctly in ddc
28 // See https://github.com/dart-lang/dev_compiler/issues/517 28 // https://github.com/dart-lang/sdk/issues/28326
29 setNativeSubclassDispatchRecord(proto, interceptor) { } 29 setNativeSubclassDispatchRecord(proto, interceptor) { }
30 findDispatchTagForInterceptorClass(interceptorClassConstructor) {} 30 findDispatchTagForInterceptorClass(interceptorClassConstructor) {}
31 makeLeafDispatchRecord(interceptor) {} 31 makeLeafDispatchRecord(interceptor) {}
OLDNEW
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/private/js_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698