Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <body> | 1 <body> |
| 2 <script> | 2 <script> |
| 3 | 3 |
| 4 window.testStatus = ''; | 4 window.testStatus = ''; |
| 5 var objects = ['runtime', 'require', 'test', 'binding']; | 5 var objects = ['runtime', 'require', 'test', 'binding', 'Binding', '$set', 'expo rts', 'requireNative', 'requireAsync', 'privates']; |
|
asargent_no_longer_on_chrome
2016/03/16 22:17:24
was this intended to be part of this CL?
Devlin
2016/03/16 22:58:01
Most definitely not. Thanks :)
| |
| 6 var leaked = []; | 6 var leaked = []; |
| 7 | 7 |
| 8 function intercept(objectKey) { | 8 function intercept(objectKey) { |
| 9 Object.defineProperty(Object.prototype, objectKey, { | 9 Object.defineProperty(Object.prototype, objectKey, { |
| 10 get: function () { | 10 get: function () { |
| 11 leaked.push({name: objectKey, obj: this}); | 11 leaked.push({name: objectKey, obj: this}); |
| 12 }, | 12 }, |
| 13 set: function (v) { | 13 set: function (v) { |
| 14 Object.defineProperty(this, objectKey, { | 14 Object.defineProperty(this, objectKey, { |
| 15 value: v, | 15 value: v, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 'Failed: Found ' + key + ' on ' + nameAndObj.name + '\n'; | 47 'Failed: Found ' + key + ' on ' + nameAndObj.name + '\n'; |
| 48 } | 48 } |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 if (window.testStatus === '') | 52 if (window.testStatus === '') |
| 53 window.testStatus = 'success'; | 53 window.testStatus = 'success'; |
| 54 | 54 |
| 55 </script> | 55 </script> |
| 56 </body> | 56 </body> |
| OLD | NEW |