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 library _interceptors; | 5 library _interceptors; |
6 | 6 |
7 import 'dart:_js_embedded_names' show | 7 import 'dart:_js_embedded_names' show |
8 DISPATCH_PROPERTY_NAME, | 8 DISPATCH_PROPERTY_NAME, |
9 TYPE_TO_INTERCEPTOR_MAP; | 9 TYPE_TO_INTERCEPTOR_MAP; |
10 | 10 |
11 import 'dart:collection'; | 11 import 'dart:collection'; |
12 import 'dart:_internal' hide Symbol; | 12 import 'dart:_internal' hide Symbol; |
13 import "dart:_internal" as _symbol_dev show Symbol; | 13 import "dart:_internal" as _symbol_dev show Symbol; |
14 import 'dart:_js_helper' show allMatchesInStringUnchecked, | 14 import 'dart:_js_helper' show allMatchesInStringUnchecked, |
15 Null, | 15 Null, |
16 JSSyntaxRegExp, | 16 JSSyntaxRegExp, |
17 Primitives, | 17 Primitives, |
18 checkInt, | 18 checkInt, |
19 checkNull, | 19 checkNull, |
20 checkNum, | 20 checkNum, |
21 checkString, | 21 checkString, |
22 defineProperty, | 22 defineProperty, |
23 diagnoseIndexError, | |
24 getRuntimeType, | 23 getRuntimeType, |
25 initNativeDispatch, | 24 initNativeDispatch, |
26 initNativeDispatchFlag, | 25 initNativeDispatchFlag, |
27 regExpGetNative, | 26 regExpGetNative, |
28 regExpCaptureCount, | 27 regExpCaptureCount, |
29 stringContainsUnchecked, | 28 stringContainsUnchecked, |
30 stringIndexOfStringUnchecked, | 29 stringIndexOfStringUnchecked, |
31 stringLastIndexOfUnchecked, | 30 stringLastIndexOfUnchecked, |
32 stringReplaceAllFuncUnchecked, | 31 stringReplaceAllFuncUnchecked, |
33 stringReplaceAllUnchecked, | 32 stringReplaceAllUnchecked, |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 * Interceptor for unclassified JavaScript objects, typically objects with a | 400 * Interceptor for unclassified JavaScript objects, typically objects with a |
402 * non-trivial prototype chain. | 401 * non-trivial prototype chain. |
403 * | 402 * |
404 * This class also serves as a fallback for unknown JavaScript exceptions. | 403 * This class also serves as a fallback for unknown JavaScript exceptions. |
405 */ | 404 */ |
406 class UnknownJavaScriptObject extends JavaScriptObject { | 405 class UnknownJavaScriptObject extends JavaScriptObject { |
407 const UnknownJavaScriptObject(); | 406 const UnknownJavaScriptObject(); |
408 | 407 |
409 String toString() => JS('String', 'String(#)', this); | 408 String toString() => JS('String', 'String(#)', this); |
410 } | 409 } |
OLD | NEW |