mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
d4df2cece8
swc_ecma_parser: - Do not emit strict mode error while backtracking. (#1252) swc_ecma_transforms_proposal: - Handle decorator on methods with computed key.
11 lines
349 B
JavaScript
11 lines
349 B
JavaScript
const a = {
|
|
method() {
|
|
const string = `
|
|
width: ${Math.abs(this.currentX - this.startX - left)}px;
|
|
height: ${Math.abs(this.currentY - this.realtimeStartY - top)}px;
|
|
top: ${Math.min(this.currentY - top, this.realtimeStartY) + this.scrollTop}px;
|
|
left: ${Math.min(this.currentX - left, this.startX) + this.scrollLeft}px
|
|
`;
|
|
|
|
}
|
|
} |