DescriptionCanonicalize expressions that may be used as constants
Evaluate and canonicalize the parameters to the built-in function
identical(a,b) if they are strings. This guarantees that
identical(“ab”, “a”+”b”) evaluates to true.
Note: when the parser parses “a”+”b”, it doesn’t know whether the
expression will be used in a context that may require a
constant value. The canonicalization is thus deferred until it is
known that it is required.
BUG=25024
R=rmacnak@google.com
Committed: https://github.com/dart-lang/sdk/commit/11a101a325e62aef5f568c8536ede77a6dc2bf94
Patch Set 1 #Patch Set 2 : #
Total comments: 3
Messages
Total messages: 11 (4 generated)
|