| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // DO NOT EDIT | 5 // DO NOT EDIT |
| 6 // Auto-generated Dart DOM implementation. | 6 // Auto-generated Dart DOM implementation. |
| 7 | 7 |
| 8 | 8 |
| 9 function native__AbstractWorkerWrappingImplementation__get__AbstractWorker_onerr
or(_this) { | 9 function native__AbstractWorkerWrappingImplementation__get__AbstractWorker_onerr
or(_this) { |
| 10 try { | 10 try { |
| (...skipping 26709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26720 } | 26720 } |
| 26721 } else { | 26721 } else { |
| 26722 return (void 0); | 26722 return (void 0); |
| 26723 } | 26723 } |
| 26724 } | 26724 } |
| 26725 } | 26725 } |
| 26726 | 26726 |
| 26727 function __dom_set_cached(hashtablename, obj, isolatetoken, value) { | 26727 function __dom_set_cached(hashtablename, obj, isolatetoken, value) { |
| 26728 var hashtable; | 26728 var hashtable; |
| 26729 if (!obj.hasOwnProperty(hashtablename)) { | 26729 if (!obj.hasOwnProperty(hashtablename)) { |
| 26730 hashtable = []; | 26730 hashtable = {}; |
| 26731 obj[hashtablename] = hashtable; | 26731 obj[hashtablename] = hashtable; |
| 26732 } else { | 26732 } else { |
| 26733 hashtable = obj[hashtablename]; | 26733 hashtable = obj[hashtablename]; |
| 26734 } | 26734 } |
| 26735 var hash = isolatetoken.hashCode; | 26735 var hash = isolatetoken.hashCode; |
| 26736 while (true) { | 26736 while (true) { |
| 26737 var entry = hashtable[hash]; | 26737 var entry = hashtable[hash]; |
| 26738 if (entry) { | 26738 if (entry) { |
| 26739 if (entry.$token === isolatetoken) { | 26739 if (entry.$token === isolatetoken) { |
| 26740 throw "Wrapper already exists for this object: " + obj; | 26740 throw "Wrapper already exists for this object: " + obj; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26825 function native__NativeDomGlobalProperties_getWindow() { | 26825 function native__NativeDomGlobalProperties_getWindow() { |
| 26826 // TODO: Should the window be obtained from an isolate? | 26826 // TODO: Should the window be obtained from an isolate? |
| 26827 return __dom_wrap(window); | 26827 return __dom_wrap(window); |
| 26828 } | 26828 } |
| 26829 | 26829 |
| 26830 // Declared in src/GlobalProperties.dart | 26830 // Declared in src/GlobalProperties.dart |
| 26831 function native__NativeDomGlobalProperties_getDocument() { | 26831 function native__NativeDomGlobalProperties_getDocument() { |
| 26832 // TODO: Should the window be obtained from an isolate? | 26832 // TODO: Should the window be obtained from an isolate? |
| 26833 return __dom_wrap(window.document); | 26833 return __dom_wrap(window.document); |
| 26834 } | 26834 } |
| OLD | NEW |