Index: lib/runtime/dart/_utils.js |
diff --git a/lib/runtime/dart/_utils.js b/lib/runtime/dart/_utils.js |
index 5dee5707711013639c4a3883cdd68d16af19fe1a..9793464a006c386c98f89f1ed67c1996100212c2 100644 |
--- a/lib/runtime/dart/_utils.js |
+++ b/lib/runtime/dart/_utils.js |
@@ -68,7 +68,12 @@ dart_library.library('dart/_utils', null, /* Imports */[ |
} |
function copyTheseProperties(to, from, names) { |
for (let name of names) { |
- defineProperty(to, name, getOwnPropertyDescriptor(from, name)); |
+ var desc = getOwnPropertyDescriptor(from, name); |
+ if (desc != void 0) { |
+ defineProperty(to, name, desc); |
+ } else { |
+ defineLazyProperty(to, name, () => from[name]); |
+ } |
} |
return to; |
} |
@@ -76,7 +81,7 @@ dart_library.library('dart/_utils', null, /* Imports */[ |
return copyTheseProperties(to, from, getOwnNamesAndSymbols(from)); |
} |
function export_(to, from, show, hide) { |
- if (show == void 0) { |
+ if (show == void 0 || show.length == 0) { |
vsm
2015/12/01 22:29:51
Note: show is undefined on a regular export and []
|
show = getOwnNamesAndSymbols(from); |
} |
if (hide != void 0) { |