Line data Source code
1 : // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 : 5 : /// The line used in the string representation of stack chains to represent 6 : /// the gap between traces. 7 : const chainGap = '===== asynchronous gap ===========================\n'; 8 : 9 : /// The line used in the string representation of VM stack chains to represent 10 : /// the gap between traces. 11 33 : final vmChainGap = RegExp(r'^<asynchronous suspension>\n?$', multiLine: true); 12 : 13 : // TODO(nweiz): When cross-platform imports work, use them to set this. 14 : /// Whether we're running in a JS context. 15 33 : final bool inJS = 0.0 is int;