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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart

Issue 11308227: Fix problems due to unit testing of the compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (revision 15398)
+++ sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (working copy)
@@ -1712,6 +1712,8 @@
*/
void emitGetInterceptorMethods(CodeBuffer buffer) {
JavaScriptBackend backend = compiler.backend;
+ // If no class needs to be intercepted, just return.
+ if (backend.objectInterceptorClass == null) return;
ahe 2012/11/28 11:17:36 I would think it was an internal error if backend.
ngeoffray 2012/11/28 11:42:03 Not in case there is no class being instantiated.
String objectName = namer.isolateAccess(backend.objectInterceptorClass);
backend.specializedGetInterceptors.forEach(
(String key, Collection<ClassElement> classes) {

Powered by Google App Engine
This is Rietveld 408576698