-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dart2wasm] Move
StackTrace.current
for as
checks into shared run…
…time code When an implicit or explicit `as` check fails we throw a [TypeError] exception with a stack trace. Though that stack trace doesn't really have to have the top-frame being where the check failed, it's fine if there's an additional frame from the runtime code that actually throws the exception. Doing so removes `StackTrace.current` from every `as` check and therefore reduces size. Change-Id: Ia34b59ebaa54b8cdcd2dc7b153a1e4e2fe1dd0e9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/370340 Reviewed-by: Ömer Ağacan <[email protected]> Commit-Queue: Martin Kustermann <[email protected]>
- Loading branch information
1 parent
1e60700
commit d32e2ec
Showing
4 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters