mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
Properties of flattenString
TBR=sigmund@google.com Review URL: https://codereview.chromium.org/2432993004 .
This commit is contained in:
parent
148af481ff
commit
1e793c96b2
|
@ -1036,7 +1036,8 @@ class Primitives {
|
|||
}
|
||||
|
||||
static String flattenString(String str) {
|
||||
return JS('String', "#.charCodeAt(0) == 0 ? # : #", str, str, str);
|
||||
return JS('returns:String;depends:none;effects:none;throws:never;gvn:true',
|
||||
"#.charCodeAt(0) == 0 ? # : #", str, str, str);
|
||||
}
|
||||
|
||||
static String getTimeZoneName(DateTime receiver) {
|
||||
|
|
Loading…
Reference in a new issue