| OLD | NEW |
| 1 'use strict'; | 1 'use strict'; |
| 2 | 2 |
| 3 self.getterRejects = (t, obj, getterName, target) => { | 3 self.getterRejects = (t, obj, getterName, target) => { |
| 4 const getter = Object.getOwnPropertyDescriptor(obj, getterName).get; | 4 const getter = Object.getOwnPropertyDescriptor(obj, getterName).get; |
| 5 | 5 |
| 6 return promise_rejects(t, new TypeError(), getter.call(target)); | 6 return promise_rejects(t, new TypeError(), getter.call(target)); |
| 7 }; | 7 }; |
| 8 | 8 |
| 9 self.methodRejects = (t, obj, methodName, target) => { | 9 self.methodRejects = (t, obj, methodName, target) => { |
| 10 const method = obj[methodName]; | 10 const method = obj[methodName]; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // Present in some WebKit development environments | 33 // Present in some WebKit development environments |
| 34 GCController.collect(); | 34 GCController.collect(); |
| 35 } else { | 35 } else { |
| 36 /* eslint-disable no-console */ | 36 /* eslint-disable no-console */ |
| 37 console.warn('Tests are running without the ability to do manual garbage col
lection. They will still work, but ' + | 37 console.warn('Tests are running without the ability to do manual garbage col
lection. They will still work, but ' + |
| 38 'coverage will be suboptimal.'); | 38 'coverage will be suboptimal.'); |
| 39 /* eslint-enable no-console */ | 39 /* eslint-enable no-console */ |
| 40 } | 40 } |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 self.delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | 43 self.delay = ms => new Promise(resolve => step_timeout(resolve, ms)); |
| OLD | NEW |