Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2651)

Unified Diff: sdk/lib/_internal/lib/regexp_helper.dart

Issue 24091002: Emit a compile-time error when the name of a variable is referenced in the (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update co19 test expectations. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/warnings.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/regexp_helper.dart
diff --git a/sdk/lib/_internal/lib/regexp_helper.dart b/sdk/lib/_internal/lib/regexp_helper.dart
index bec8253b533edfb31326fec9366b0abb70fb1d12..09fe8619735c96c29fd6731ef04b304696d9c9b2 100644
--- a/sdk/lib/_internal/lib/regexp_helper.dart
+++ b/sdk/lib/_internal/lib/regexp_helper.dart
@@ -17,9 +17,9 @@ regExpGetNative(JSSyntaxRegExp regexp) => regexp._nativeRegExp;
* when it's returned, with no user-provided code run in between.
*/
regExpGetGlobalNative(JSSyntaxRegExp regexp) {
- var regexp = regexp._nativeGlobalVersion;
- JS("void", "#.lastIndex = 0", regexp);
- return regexp;
+ var nativeRegexp = regexp._nativeGlobalVersion;
+ JS("void", "#.lastIndex = 0", nativeRegexp);
+ return nativeRegexp;
}
class JSSyntaxRegExp implements RegExp {
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/warnings.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698