Files
sdk/tests/web/wasm/source_map_simple_test.dart
T
Robert Nystrom ba40d9bece Format tests/web/ using the 3.8 formatting style.
Change-Id: I73edeeaf4934899b71d6335dcb4b4b54dce46bae
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426340
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Nate Biggs <natebiggs@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2025-05-02 20:17:11 -07:00

33 lines
1.3 KiB
Dart

// Copyright (c) 2024, 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.
// dart2wasmOptions=--no-strip-wasm --extra-compiler-option=-DTEST_COMPILATION_DIR=$TEST_COMPILATION_DIR
import 'source_map_simple_lib.dart' as Lib;
void main() {
Lib.testMain('source_map_simple', frameDetails);
}
const List<(String?, int?, int?, String?)?> frameDetails = [
('errors_patch.dart', null, null, '_throwWithCurrentStackTrace'),
('source_map_simple_lib.dart', 16, 3, 'g'),
('source_map_simple_lib.dart', 12, 3, 'f'),
('source_map_simple_lib.dart', 41, 5, 'testMain'),
('source_map_simple_test.dart', 10, 7, 'main'),
null, // main tear-off, compiler generated, not mapped
// The rest of the stack is dependent on the compiler mode.
];
/*
at Error._throwWithCurrentStackTrace (wasm://wasm/00119ad6:wasm-function[144]:0x165f1)
at g (wasm://wasm/00119ad6:wasm-function[1251]:0x2a8f6)
at f (wasm://wasm/00119ad6:wasm-function[809]:0x1f441)
at testMain (wasm://wasm/00119ad6:wasm-function[804]:0x1f0d4)
at main (wasm://wasm/00119ad6:wasm-function[801]:0x1f031)
at main tear-off trampoline (wasm://wasm/00119ad6:wasm-function[803]:0x1f044)
at _invokeMain (wasm://wasm/00119ad6:wasm-function[104]:0x1555b)
at Module.invoke (...)
*/