af7cbd2a04
Dart2JS uses the file offset on these nodes to create JS source maps. We want to maintain these file offsets across the serialization layer when we compile from dill files rather than directly from sources. Dart2JS tests were serializing via `--test-mode` flag and thus had incorrect source locations for some stack traces. TEST=Updating tests for all of these in fasta offsets tests. Change-Id: I33862462fbff84d88f8c51bdeb1efc5771cfb8b2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/327160 Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Nate Biggs <natebiggs@google.com>
16 lines
419 B
Dart
16 lines
419 B
Dart
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// @dart = 2.7
|
|
|
|
main() {
|
|
// This call is on the stack when the error is thrown.
|
|
/*1:main*/ test();
|
|
}
|
|
|
|
@pragma('dart2js:noInline')
|
|
test() async {
|
|
/*2:test*/ /*4:test*/ throw '>ExceptionMarker<';
|
|
}
|