| Index: sdk/lib/_internal/compiler/js_lib/js_names.dart
|
| diff --git a/sdk/lib/_internal/compiler/js_lib/js_names.dart b/sdk/lib/_internal/compiler/js_lib/js_names.dart
|
| index 3933e787245a3b25727d7a977dd0d5c52a1b49bb..87cc6c04eea97bdddc5e4322a1513dcacf728283 100644
|
| --- a/sdk/lib/_internal/compiler/js_lib/js_names.dart
|
| +++ b/sdk/lib/_internal/compiler/js_lib/js_names.dart
|
| @@ -79,14 +79,7 @@ Map<String, String> computeReflectiveNames(Map<String, String> map) {
|
|
|
| @NoInline()
|
| List extractKeys(victim) {
|
| - var result = JS('', '''
|
| -(function(victim, hasOwnProperty) {
|
| - var result = [];
|
| - for (var key in victim) {
|
| - if (hasOwnProperty.call(victim, key)) result.push(key);
|
| - }
|
| - return result;
|
| -})(#, Object.prototype.hasOwnProperty)''', victim);
|
| + var result = JS('', '# ? Object.keys(#) : []', victim, victim);
|
| return new JSArray.markFixed(result);
|
| }
|
|
|
|
|