* Accept generics for defineProperty Both `Object.defineProperty()` and `Object.defineProperties()` return their first argument. Use a generic so that typings can be passed through. * Update baselines * update missed baseline Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
28 lines
933 B
Plaintext
28 lines
933 B
Plaintext
=== tests/cases/compiler/index.js ===
|
|
var chrome = {}
|
|
>chrome : typeof chrome
|
|
>{} : {}
|
|
|
|
Object.defineProperty(chrome, 'devtools', { value: {}, enumerable: true })
|
|
>Object.defineProperty(chrome, 'devtools', { value: {}, enumerable: true }) : typeof chrome
|
|
>Object.defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
|
|
>Object : ObjectConstructor
|
|
>defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
|
|
>chrome : typeof chrome
|
|
>'devtools' : "devtools"
|
|
>{ value: {}, enumerable: true } : { value: {}; enumerable: true; }
|
|
>value : {}
|
|
>{} : {}
|
|
>enumerable : true
|
|
>true : true
|
|
|
|
chrome.devtools.inspectedWindow = {}
|
|
>chrome.devtools.inspectedWindow = {} : {}
|
|
>chrome.devtools.inspectedWindow : {}
|
|
>chrome.devtools : typeof chrome.devtools
|
|
>chrome : typeof chrome
|
|
>devtools : typeof chrome.devtools
|
|
>inspectedWindow : {}
|
|
>{} : {}
|
|
|