OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 dart._runtime; | 5 library dart._runtime; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 | 9 |
10 import 'dart:_debugger' show stackTraceMapper; | 10 import 'dart:_debugger' show stackTraceMapper; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // These settings must be configured before the application starts so that | 116 // These settings must be configured before the application starts so that |
117 // user code runs with the correct configuration. | 117 // user code runs with the correct configuration. |
118 let settings = 'ddcSettings' in globalState ? globalState.ddcSettings : {}; | 118 let settings = 'ddcSettings' in globalState ? globalState.ddcSettings : {}; |
119 $trapRuntimeErrors( | 119 $trapRuntimeErrors( |
120 'trapRuntimeErrors' in settings ? settings.trapRuntimeErrors : true); | 120 'trapRuntimeErrors' in settings ? settings.trapRuntimeErrors : true); |
121 $ignoreWhitelistedErrors( | 121 $ignoreWhitelistedErrors( |
122 'ignoreWhitelistedErrors' in settings ? | 122 'ignoreWhitelistedErrors' in settings ? |
123 settings.ignoreWhitelistedErrors : true); | 123 settings.ignoreWhitelistedErrors : true); |
124 | 124 |
125 $ignoreAllErrors( | 125 $ignoreAllErrors( |
126 'ignoreAllErrors' in settings ?settings.ignoreAllErrors : false); | 126 'ignoreAllErrors' in settings ? settings.ignoreAllErrors : false); |
127 | 127 |
128 $failForWeakModeIsChecks( | |
129 'failForWeakModeIsChecks' in settings ? | |
130 settings.failForWeakModeIsChecks : true); | |
131 $trackProfile( | 128 $trackProfile( |
132 'trackProfile' in settings ? settings.trackProfile : false); | 129 'trackProfile' in settings ? settings.trackProfile : false); |
133 | 130 |
134 return globalState; | 131 return globalState; |
135 }() | 132 }() |
136 '''); | 133 '''); |
137 | 134 |
138 final JsSymbol = JS('', 'Symbol'); | 135 final JsSymbol = JS('', 'Symbol'); |
OLD | NEW |