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

Side by Side Diff: sdk/lib/html/html_common/conversions_dart2js.dart

Issue 2968413002: Revert "Use relative URIs for core library part-of statements." (Closed)
Patch Set: Created 3 years, 5 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 | « sdk/lib/developer/timeline.dart ('k') | sdk/lib/html/html_common/conversions_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of "html_common_dart2js.dart"; 1 part of html_common;
2 2
3 /// Converts a JavaScript object with properties into a Dart Map. 3 /// Converts a JavaScript object with properties into a Dart Map.
4 /// Not suitable for nested objects. 4 /// Not suitable for nested objects.
5 Map convertNativeToDart_Dictionary(object) { 5 Map convertNativeToDart_Dictionary(object) {
6 if (object == null) return null; 6 if (object == null) return null;
7 var dict = {}; 7 var dict = {};
8 var keys = JS('JSExtendableArray', 'Object.getOwnPropertyNames(#)', object); 8 var keys = JS('JSExtendableArray', 'Object.getOwnPropertyNames(#)', object);
9 for (final key in keys) { 9 for (final key in keys) {
10 dict[key] = JS('var', '#[#]', object, key); 10 dict[key] = JS('var', '#[#]', object, key);
11 } 11 }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 const String _serializedScriptValue = 'num|String|bool|' 97 const String _serializedScriptValue = 'num|String|bool|'
98 'JSExtendableArray|=Object|' 98 'JSExtendableArray|=Object|'
99 'Blob|File|NativeByteBuffer|NativeTypedData' 99 'Blob|File|NativeByteBuffer|NativeTypedData'
100 // TODO(sra): Add Date, RegExp. 100 // TODO(sra): Add Date, RegExp.
101 ; 101 ;
102 const annotation_Creates_SerializedScriptValue = 102 const annotation_Creates_SerializedScriptValue =
103 const Creates(_serializedScriptValue); 103 const Creates(_serializedScriptValue);
104 const annotation_Returns_SerializedScriptValue = 104 const annotation_Returns_SerializedScriptValue =
105 const Returns(_serializedScriptValue); 105 const Returns(_serializedScriptValue);
OLDNEW
« no previous file with comments | « sdk/lib/developer/timeline.dart ('k') | sdk/lib/html/html_common/conversions_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698