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, |
23 getRuntimeType, | 24 getRuntimeType, |
24 initNativeDispatch, | 25 initNativeDispatch, |
25 initNativeDispatchFlag, | 26 initNativeDispatchFlag, |
26 regExpGetNative, | 27 regExpGetNative, |
27 regExpCaptureCount, | 28 regExpCaptureCount, |
28 stringContainsUnchecked, | 29 stringContainsUnchecked, |
29 stringIndexOfStringUnchecked, | 30 stringIndexOfStringUnchecked, |
30 stringLastIndexOfUnchecked, | 31 stringLastIndexOfUnchecked, |
31 stringReplaceAllFuncUnchecked, | 32 stringReplaceAllFuncUnchecked, |
32 stringReplaceAllUnchecked, | 33 stringReplaceAllUnchecked, |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 * Interceptor for unclassified JavaScript objects, typically objects with a | 401 * Interceptor for unclassified JavaScript objects, typically objects with a |
401 * non-trivial prototype chain. | 402 * non-trivial prototype chain. |
402 * | 403 * |
403 * This class also serves as a fallback for unknown JavaScript exceptions. | 404 * This class also serves as a fallback for unknown JavaScript exceptions. |
404 */ | 405 */ |
405 class UnknownJavaScriptObject extends JavaScriptObject { | 406 class UnknownJavaScriptObject extends JavaScriptObject { |
406 const UnknownJavaScriptObject(); | 407 const UnknownJavaScriptObject(); |
407 | 408 |
408 String toString() => JS('String', 'String(#)', this); | 409 String toString() => JS('String', 'String(#)', this); |
409 } | 410 } |
OLD | NEW |