Skip to content

Commit a01e680

Browse files
committed
Update js-compute-builtins.h
1 parent f090838 commit a01e680

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

c-dependencies/js-compute-runtime/js-compute-builtins.h

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,16 @@ void markWizeningAsFinished();
8383

8484
class FastlyOptions {
8585
private:
86-
uint8_t mask = 0;
86+
bool experimental_high_resolution_time_methods_enabled = false;
8787

8888
public:
89-
static constexpr const uint8_t experimental_high_resolution_time_methods_enabled_flag = 1 << 0;
90-
9189
FastlyOptions() = default;
9290

9391
bool getExperimentalHighResolutionTimeMethodsEnabled() {
94-
return this->mask & experimental_high_resolution_time_methods_enabled_flag;
92+
return this->experimental_high_resolution_time_methods_enabled;
9593
};
9694
void setExperimentalHighResolutionTimeMethodsEnabled(bool set) {
97-
if (set) {
98-
this->mask |= experimental_high_resolution_time_methods_enabled_flag;
99-
} else {
100-
this->mask &= ~experimental_high_resolution_time_methods_enabled_flag;
101-
}
95+
this->experimental_high_resolution_time_methods_enabled = set;
10296
};
10397
};
10498

0 commit comments

Comments
 (0)