OLD | NEW |
(Empty) | |
| 1 if (this.importScripts) |
| 2 importScripts('../../fast/js/resources/js-test-pre.js'); |
| 3 |
| 4 function isConstructor(propertyName) { |
| 5 var descriptor = Object.getOwnPropertyDescriptor(this, propertyName); |
| 6 if (descriptor.value == undefined || descriptor.value.prototype == undefined
) |
| 7 return false; |
| 8 return descriptor.writable && !descriptor.enumerable && descriptor.configura
ble; |
| 9 } |
| 10 |
| 11 var constructorNames = []; |
| 12 var propertyNames = Object.getOwnPropertyNames(this); |
| 13 for (var i = 0; i < propertyNames.length; i++) { |
| 14 if (isConstructor(propertyNames[i])) |
| 15 constructorNames[constructorNames.length] = propertyNames[i]; |
| 16 } |
| 17 |
| 18 |
| 19 constructorNames.sort(); |
| 20 for (var i = 0; i < constructorNames.length; i++) |
| 21 debug(constructorNames[i]); |
| 22 |
| 23 if (isWorker()) |
| 24 finishJSTest(); |
OLD | NEW |