We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b956f3 commit 4a9b1bcCopy full SHA for 4a9b1bc
test/parallel/test-temporal.js
@@ -0,0 +1,14 @@
1
+// Flags: --harmony-temporal
2
+
3
+'use strict';
4
+const common = require('../common');
5
+const assert = require('assert');
6
7
+if (!process.config.variables.v8_enable_temporal_support) {
8
+ common.skip('Temporal is not enabled');
9
+}
10
11
+// Use globalThis.Temporal to workaround linter complaints.
12
+assert.strictEqual(typeof globalThis.Temporal, 'object');
13
+const instant = globalThis.Temporal.Instant.from('1969-07-20T20:17Z');
14
+assert.strictEqual(instant.toString(), '1969-07-20T20:17:00Z');
0 commit comments