Skip to content

Commit 8516196

Browse files
committed
lib: unflag experimental Temporal
1 parent 7a6b128 commit 8516196

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

doc/api/globals.md

+11
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,17 @@ added: v17.0.0
10751075

10761076
The WHATWG `DOMException` class. See [`DOMException`][] for more details.
10771077

1078+
## `Temporal`
1079+
1080+
<!-- YAML
1081+
added: REPLACEME
1082+
-->
1083+
1084+
> Stability: 1 - Experimental.
1085+
1086+
The `Temporal` global is a new language level API for working with dates and
1087+
times.
1088+
10781089
## `TextDecoder`
10791090

10801091
<!-- YAML

src/node.cc

+7
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,13 @@ static ExitCode ProcessGlobalArgsInternal(std::vector<std::string>* args,
758758
v8_args.emplace_back("--harmony-import-attributes");
759759
}
760760

761+
// TODO(jasnell): remove this when the harmony-temporal flag
762+
// is removed in V8.
763+
if (std::find(v8_args.begin(), v8_args.end(), "--no-harmony-temporal") ==
764+
v8_args.end()) {
765+
v8_args.emplace_back("--harmony-temporal");
766+
}
767+
761768
auto env_opts = per_process::cli_options->per_isolate->per_env;
762769
if (std::find(v8_args.begin(), v8_args.end(),
763770
"--abort-on-uncaught-exception") != v8_args.end() ||
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
require('../common');
4+
5+
const { ok } = require('assert');
6+
7+
// Test verifying that Temporal is present in the global scope
8+
9+
ok(globalThis.Temporal);

0 commit comments

Comments
 (0)