mirror of
https://github.com/dart-lang/sdk
synced 2024-10-01 19:29:09 +00:00
[dart2js] Don't minify Invocation.memberName
Fixes: #54201 Change-Id: I3cc66263a86668ee46743e46564b175d60143916 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338947 Reviewed-by: Stephen Adams <sra@google.com> Commit-Queue: Mayank Patke <fishythefish@google.com>
This commit is contained in:
parent
f53da889cd
commit
4e3cc1cb41
|
@ -62,6 +62,15 @@
|
||||||
Dart classes. This information provides little value and keeping it imposes an
|
Dart classes. This information provides little value and keeping it imposes an
|
||||||
unnecessary maintenance cost.
|
unnecessary maintenance cost.
|
||||||
|
|
||||||
|
#### Production JavaScript compiler (dart2js)
|
||||||
|
|
||||||
|
- **Breaking Change** [#54201][]:
|
||||||
|
The `Invocation` that is passed to `noSuchMethod` will no longer have a
|
||||||
|
minified `memberName`, even when dart2js is invoked with `--minify`.
|
||||||
|
See [#54201][] for more details.
|
||||||
|
|
||||||
|
[#54201]: https://github.com/dart-lang/sdk/issues/54201
|
||||||
|
|
||||||
#### Linter
|
#### Linter
|
||||||
|
|
||||||
- Removed the `iterable_contains_unrelated_type` and
|
- Removed the `iterable_contains_unrelated_type` and
|
||||||
|
|
|
@ -185,8 +185,7 @@ class ClassStubGenerator {
|
||||||
'noSuchMethodName': _namer.noSuchMethodName,
|
'noSuchMethodName': _namer.noSuchMethodName,
|
||||||
'createInvocationMirror':
|
'createInvocationMirror':
|
||||||
_emitter.staticFunctionAccess(_commonElements.createInvocationMirror),
|
_emitter.staticFunctionAccess(_commonElements.createInvocationMirror),
|
||||||
'methodName':
|
'methodName': js.quoteName(methodName),
|
||||||
js.quoteName(enableMinification ? internalName : methodName),
|
|
||||||
'internalName': js.quoteName(internalName),
|
'internalName': js.quoteName(internalName),
|
||||||
'type': js.number(type),
|
'type': js.number(type),
|
||||||
'arguments': jsAst.ArrayInitializer(
|
'arguments': jsAst.ArrayInitializer(
|
||||||
|
|
Loading…
Reference in a new issue