File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ class ClassHelper extends Domain {
100
100
var methods = Object.getOwnPropertyNames(proto);
101
101
for (var i = 0; i < methods.length; i++) {
102
102
if (methodNames.indexOf(methods[i]) == -1
103
- && typeof proto[methods[i]] == 'function'
104
103
&& methods[i] != 'constructor') {
105
104
methodNames.push(methods[i]);
106
105
}
Original file line number Diff line number Diff line change @@ -407,14 +407,17 @@ void main() {
407
407
test ('Classes' , () async {
408
408
var testClass = await service.getObject (
409
409
isolate.id, rootLibrary.classes.first.id) as Class ;
410
-
411
410
expect (
412
411
testClass.functions,
413
412
unorderedEquals ([
413
+ predicate ((FuncRef f) => f.name == 'message' && ! f.isStatic),
414
+ predicate ((FuncRef f) => f.name == 'notFinal' && ! f.isStatic),
414
415
predicate ((FuncRef f) => f.name == 'hello' && ! f.isStatic),
415
416
predicate ((FuncRef f) => f.name == '_equals' && ! f.isStatic),
417
+ predicate ((FuncRef f) => f.name == 'hashCode' && ! f.isStatic),
416
418
predicate ((FuncRef f) => f.name == 'toString' && ! f.isStatic),
417
419
predicate ((FuncRef f) => f.name == 'noSuchMethod' && ! f.isStatic),
420
+ predicate ((FuncRef f) => f.name == 'runtimeType' && ! f.isStatic),
418
421
]));
419
422
expect (
420
423
testClass.fields,
You can’t perform that action at this time.
0 commit comments