72d87adf69
Add `never-inline` pragma to all methods in the "StackTrace.current" call hierarchy. If dart2wasm or wasm-opt inline any of these the number of frames to remove is inconsistent. Also only remove frames when the stack trace is from "current", not when it's from the other JavaScriptStackTrace constructor. Fixes issue raised in: https://dart-review.googlesource.com/c/sdk/+/479640/comments/7be8f913_489aa935 Change-Id: Id15252cc210bb79f28acad4bc78ce9ee8ff69ac7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/483624 Reviewed-by: Srujan Gaddam <srujzs@google.com> Commit-Queue: Nate Biggs <natebiggs@google.com>
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/tree/main/docs/Testing.md.