OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. | 2 * Copyright (c) 2012, the Dart project authors. |
3 * | 3 * |
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
6 * | 6 * |
7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
8 * | 8 * |
9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 descriptor.value = WebkitRemoteObject.createFrom(params.getJSONObject("val
ue")); | 80 descriptor.value = WebkitRemoteObject.createFrom(params.getJSONObject("val
ue")); |
81 } | 81 } |
82 | 82 |
83 // __proto__ | 83 // __proto__ |
84 if (descriptor.name.equals("__proto__")) { | 84 if (descriptor.name.equals("__proto__")) { |
85 descriptor.enumerable = false; | 85 descriptor.enumerable = false; |
86 } | 86 } |
87 | 87 |
88 if (descriptor.value != null) { | 88 if (descriptor.value != null) { |
89 if (descriptor.value.isDartFunction()) { | 89 if (descriptor.value.isDartFunction()) { |
90 // Convert "[Dart Function]" into something more user friendly. | 90 // Convert "<Dart Method>" into something more user friendly. |
91 descriptor.value.setDescription("Function"); | 91 descriptor.value.setDescription("Function"); |
| 92 |
| 93 // Hide Dart methods in the stack frame. |
| 94 descriptor.enumerable = false; |
92 } | 95 } |
93 | 96 |
94 // [runtimeType, _Type] | 97 // [runtimeType, _Type] |
95 if (descriptor.name.equals("runtimeType") && "_Type".equals(descriptor.val
ue.getClassName())) { | 98 if (descriptor.name.equals("runtimeType") && "_Type".equals(descriptor.val
ue.getClassName())) { |
96 descriptor.enumerable = false; | 99 descriptor.enumerable = false; |
97 } | 100 } |
98 | 101 |
99 // Patch up the className for the @staticFields property. | 102 // Patch up the className for the @staticFields property. |
100 if (STATIC_FIELDS_OBJECT.equals(descriptor.name)) { | 103 if (STATIC_FIELDS_OBJECT.equals(descriptor.name)) { |
101 descriptor.value.className = "Type"; | 104 descriptor.value.className = "Type"; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 public boolean isWritable() { | 202 public boolean isWritable() { |
200 return writable; | 203 return writable; |
201 } | 204 } |
202 | 205 |
203 @Override | 206 @Override |
204 public String toString() { | 207 public String toString() { |
205 return "[" + name + "," + value + "]"; | 208 return "[" + name + "," + value + "]"; |
206 } | 209 } |
207 | 210 |
208 } | 211 } |
OLD | NEW |