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

Unified Diff: lib/compiler/implementation/compiler.dart

Issue 10915083: Change assert implementation to not depend on a top-level function called 'assert'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revert to using lexicalScope Created 8 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
Index: lib/compiler/implementation/compiler.dart
diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
index 745eea04b6f5344514e40813f32a998ebd1dda84..a291888229f61eb3f6daaab76d13b315c9a60290 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -373,7 +373,7 @@ class Compiler implements DiagnosticListener {
libraries['dart:core'] = coreLibrary;
libraries['dart:coreimpl'] = coreImplLibrary;
- assertMethod = coreLibrary.find(const SourceString('assert'));
+ assertMethod = jsHelperLibrary.find(const SourceString('assert'));
initializeSpecialClasses();
« no previous file with comments | « no previous file | lib/compiler/implementation/elements/elements.dart » ('j') | lib/compiler/implementation/lib/mock.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698