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

Unified Diff: lib/runtime/_classes.js

Issue 1243503007: fixes #221, initial sync*, async, async* implementation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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 | « karma.conf.js ('k') | lib/runtime/_generators.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/_classes.js
diff --git a/lib/runtime/_classes.js b/lib/runtime/_classes.js
index 11205d632cf48a91514bacabc35284bea142ca41..a57c30dde09e3074aa86de13289ce9f027068bc6 100644
--- a/lib/runtime/_classes.js
+++ b/lib/runtime/_classes.js
@@ -382,7 +382,7 @@ dart_library.library('dart_runtime/_classes', null, /* Imports */[
exports.defineExtensionMembers = defineExtensionMembers;
function canonicalMember(obj, name) {
- if (obj[_extensionType]) return dartx[name];
+ if (obj != null && obj[_extensionType]) return dartx[name];
return name;
}
exports.canonicalMember = canonicalMember;
« no previous file with comments | « karma.conf.js ('k') | lib/runtime/_generators.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698