Skip to content

Commit 979c507

Browse files
refactor: replace @lazy with @inline where possible
1 parent 8e57449 commit 979c507

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

assembly/constants.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
// @ts-ignore
2-
@lazy
2+
@inline
33
export const MILLIS_PER_DAY = 1_000 * 60 * 60 * 24;
44

55
// @ts-ignore
6-
@lazy
6+
@inline
77
export const MILLIS_PER_HOUR = 1_000 * 60 * 60;
88

99
// @ts-ignore
10-
@lazy
10+
@inline
1111
export const MILLIS_PER_MINUTE = 1_000 * 60;
1212

1313
// @ts-ignore
14-
@lazy
14+
@inline
1515
export const MILLIS_PER_SECOND = 1_000;
1616

1717
// @ts-ignore
18-
@lazy
18+
@inline
1919
export const MICROS_PER_SECOND = 1_000_000;
2020

2121
// @ts-ignore
22-
@lazy
22+
@inline
2323
export const NANOS_PER_SECOND = 1_000_000_000;
2424

2525
// @ts-ignore
26-
@lazy
26+
@inline
2727
export const NANOS_PER_DAY = i64(MILLIS_PER_DAY) * 1_000_000;

assembly/duration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { PlainDateTime } from "./plaindatetime";
66
import { TimeComponent } from "./enums";
77

88
// @ts-ignore
9-
@lazy
9+
@inline
1010
const NULL = i32.MAX_VALUE;
1111

1212
export class DurationLike {

assembly/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import { PlainDate } from "./plaindate";
1818
import { PlainDateTime } from "./plaindatetime";
1919

2020
// @ts-ignore
21-
@lazy
21+
@inline
2222
const YEAR_MIN = -271821;
2323

2424
// @ts-ignore
25-
@lazy
25+
@inline
2626
const YEAR_MAX = 275760;
2727

2828
// @ts-ignore

0 commit comments

Comments
 (0)