Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Run all the code in a local scope. | 1 // Run all the code in a local scope. |
| 2 (function(globalObject) { | 2 (function(globalObject) { |
| 3 | 3 |
| 4 // Save the list of property names of the global object before loading other scr ipts. | 4 // Save the list of property names of the global object before loading other scr ipts. |
| 5 var propertyNamesInGlobal = globalObject.propertyNamesInGlobal || Object.getOwnP ropertyNames(globalObject); | 5 var propertyNamesInGlobal = globalObject.propertyNamesInGlobal || Object.getOwnP ropertyNames(globalObject); |
| 6 | 6 |
| 7 if (self.importScripts) { | 7 if (self.importScripts) { |
| 8 importScripts('../../resources/js-test.js'); | 8 importScripts('../../resources/js-test.js'); |
| 9 | 9 |
| 10 if (!self.postMessage) { | 10 if (!self.postMessage) { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 'encodeURI', | 79 'encodeURI', |
| 80 'encodeURIComponent', | 80 'encodeURIComponent', |
| 81 'escape', | 81 'escape', |
| 82 'eval', | 82 'eval', |
| 83 'isFinite', | 83 'isFinite', |
| 84 'isNaN', | 84 'isNaN', |
| 85 'parseFloat', | 85 'parseFloat', |
| 86 'parseInt', | 86 'parseInt', |
| 87 'undefined', | 87 'undefined', |
| 88 'unescape', | 88 'unescape', |
| 89 'WebAssembly', | |
|
jochen (gone - plz use gerrit)
2017/01/11 15:14:10
please move that up to between WeakSet and decodeU
| |
| 89 ]); | 90 ]); |
| 90 | 91 |
| 91 function isWebIDLConstructor(propertyKey) { | 92 function isWebIDLConstructor(propertyKey) { |
| 92 if (jsBuiltins.has(propertyKey)) | 93 if (jsBuiltins.has(propertyKey)) |
| 93 return false; | 94 return false; |
| 94 var descriptor = Object.getOwnPropertyDescriptor(this, propertyKey); | 95 var descriptor = Object.getOwnPropertyDescriptor(this, propertyKey); |
| 95 if (descriptor.value == undefined || descriptor.value.prototype == undefined ) | 96 if (descriptor.value == undefined || descriptor.value.prototype == undefined ) |
| 96 return false; | 97 return false; |
| 97 return descriptor.writable && !descriptor.enumerable && descriptor.configura ble; | 98 return descriptor.writable && !descriptor.enumerable && descriptor.configura ble; |
| 98 } | 99 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 178 }); | 179 }); |
| 179 memberNames.forEach(function(propertyKey) { | 180 memberNames.forEach(function(propertyKey) { |
| 180 collectPropertyInfo(globalObject, propertyKey, propertyStrings); | 181 collectPropertyInfo(globalObject, propertyKey, propertyStrings); |
| 181 }); | 182 }); |
| 182 propertyStrings.sort().forEach(debug); | 183 propertyStrings.sort().forEach(debug); |
| 183 | 184 |
| 184 if (isWorker()) | 185 if (isWorker()) |
| 185 finishJSTest(); | 186 finishJSTest(); |
| 186 | 187 |
| 187 })(this); // Run all the code in a local scope. | 188 })(this); // Run all the code in a local scope. |
| OLD | NEW |