OLD | NEW |
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 // Patch file for dart:convert library. | 5 // Patch file for dart:convert library. |
6 | 6 |
7 import 'dart:_js_helper' show patch; | 7 import 'dart:_js_helper' show patch; |
8 import 'dart:_foreign_helper' show JS; | 8 import 'dart:_foreign_helper' show JS; |
9 import 'dart:_interceptors' show JSExtendableArray; | 9 import 'dart:_interceptors' show JSExtendableArray; |
10 import 'dart:_internal' show MappedIterable; | 10 import 'dart:_internal' show MappedIterable; |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 => JS('', '#[#]', object, key); | 330 => JS('', '#[#]', object, key); |
331 static _setProperty(object, String key, value) | 331 static _setProperty(object, String key, value) |
332 => JS('', '#[#]=#', object, key, value); | 332 => JS('', '#[#]=#', object, key, value); |
333 static List _getPropertyNames(object) | 333 static List _getPropertyNames(object) |
334 => JS('JSExtendableArray', 'Object.keys(#)', object); | 334 => JS('JSExtendableArray', 'Object.keys(#)', object); |
335 static bool _isUnprocessed(object) | 335 static bool _isUnprocessed(object) |
336 => JS('bool', 'typeof(#)=="undefined"', object); | 336 => JS('bool', 'typeof(#)=="undefined"', object); |
337 static _newJavaScriptObject() | 337 static _newJavaScriptObject() |
338 => JS('=Object', 'Object.create(null)'); | 338 => JS('=Object', 'Object.create(null)'); |
339 } | 339 } |
OLD | NEW |