| OLD | NEW |
| 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 | 5 |
| 6 // Conversions for IDBKey. | 6 // Conversions for IDBKey. |
| 7 // | 7 // |
| 8 // Per http://www.w3.org/TR/IndexedDB/#key-construct | 8 // Per http://www.w3.org/TR/IndexedDB/#key-construct |
| 9 // | 9 // |
| 10 // "A value is said to be a valid key if it is one of the following types: Array | 10 // "A value is said to be a valid key if it is one of the following types: Array |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 return copy; | 387 return copy; |
| 388 } | 388 } |
| 389 | 389 |
| 390 | 390 |
| 391 bool _isJavaScriptDate(value) => JS('bool', '# instanceof Date', value); | 391 bool _isJavaScriptDate(value) => JS('bool', '# instanceof Date', value); |
| 392 bool _isJavaScriptRegExp(value) => JS('bool', '# instanceof RegExp', value); | 392 bool _isJavaScriptRegExp(value) => JS('bool', '# instanceof RegExp', value); |
| 393 bool _isJavaScriptArray(value) => JS('bool', '# instanceof Array', value); | 393 bool _isJavaScriptArray(value) => JS('bool', '# instanceof Array', value); |
| 394 bool _isJavaScriptSimpleObject(value) => | 394 bool _isJavaScriptSimpleObject(value) => |
| 395 JS('bool', 'Object.getPrototypeOf(#) === Object.prototype', value); | 395 JS('bool', 'Object.getPrototypeOf(#) === Object.prototype', value); |
| 396 bool _isImmutableJavaScriptArray(value) => | 396 bool _isImmutableJavaScriptArray(value) => |
| 397 JS('bool', @'!!(#.immutable$list)', value); | 397 JS('bool', r'!!(#.immutable$list)', value); |
| OLD | NEW |