TypeScript/tests/cases/fourslash/jsObjectDefinePropertyRenameLocations.ts
Wesley Wigham 0a7c92864d
Fix Object.defineProperty declaration expando-ness and renames (#28061)
* Allow object.defineProperty calls to be expando properties

* Fix rename locations for object.defineProperty assignments
2018-10-23 09:33:53 -07:00

17 lines
536 B
TypeScript

/// <reference path="fourslash.ts" />
// @allowJs: true
// @checkJs: true
// @noEmit: true
// @Filename: index.js
////var CircularList = (function () {
//// var CircularList = function() {};
//// Object.defineProperty(CircularList.prototype, "[|maxLength|]", { value: 0, writable: true });
//// CircularList.prototype.push = function (value) {
//// // ...
//// this.[|maxLength|] + this.[|maxLength|]
//// }
//// return CircularList;
////})()
verify.rangesWithSameTextAreRenameLocations();