Hemang Varshney
4842f23765
fix(source): retain CommonJS requires spelled as exact no-substitution templates ( #4511 )
...
* fix(source): retain CommonJS requires spelled as exact no-substitution templates
Admit expression-free template arguments at the CommonJS require gate and
read their single cooked quasi through the shared exact-literal reader.
Scope is the require path only: static ESM template declarations keep their
parse failures and dynamic import() keeps the explicit unknown/partial
<dynamic-import> relationship with no invented target.
Refs: #4382
* fix(source): admit TypeScript-wrapped exact require arguments via the shared literal reader
Address review: the require gate matched the outer AST node, so
runtime-transparent TS wrappers (as const, !, satisfies) around exact
strings or expression-free templates were still silently omitted even
though readExactJavaScriptLiteral unwraps them. Remove the gate and let
the shared exact-literal reader own argument exactness; computed
arguments remain silent and dynamic import() behavior is unchanged.
Refs: #4382
---------
Co-authored-by: Hemang Varshney <218273197+hemv-857@users.noreply.github.com >
2026-10-22 06:12:42 +08:00
..
2026-10-15 03:43:28 +08:00
2026-10-17 20:02:26 +08:00
2026-10-21 19:01:20 +08:00
2026-10-16 11:48:59 +08:00
2026-10-17 09:57:43 +08:00
2026-10-13 16:04:44 +08:00
2026-10-17 20:10:12 +08:00
2026-10-17 23:23:27 +08:00
2026-10-21 14:09:29 +08:00
2026-10-21 05:06:28 -07:00
2026-10-11 22:33:57 +08:00
2026-10-11 04:43:02 +08:00
2026-10-19 14:32:48 +08:00
2026-10-12 04:53:27 +08:00
2026-10-20 22:18:03 +08:00
2026-10-20 04:01:36 +08:00
2026-10-20 17:25:19 +08:00
2026-10-19 14:32:48 +08:00
2026-10-20 19:05:38 +08:00
2026-10-16 02:47:04 +08:00
2026-10-19 14:32:48 +08:00
2026-10-19 14:32:48 +08:00
2026-10-20 09:53:53 +08:00
2026-10-22 04:11:15 +08:00
2026-10-19 14:32:48 +08:00
2026-10-19 14:32:48 +08:00
2026-10-20 22:18:03 +08:00
2026-10-21 06:14:03 +08:00
2026-10-17 17:14:16 +08:00
2026-10-21 05:28:08 +08:00
2026-10-21 03:48:14 +08:00
2026-10-21 19:47:52 +08:00
2026-10-21 03:29:31 +08:00
2026-10-14 06:23:22 +08:00
2026-10-21 03:29:31 +08:00
2026-10-13 17:46:04 +08:00
2026-10-14 06:07:08 +08:00
2026-10-18 01:08:14 +08:00
2026-10-21 03:29:31 +08:00
2026-10-14 06:07:08 +08:00
2026-10-14 06:07:08 +08:00
2026-10-21 03:29:31 +08:00
2026-10-14 06:07:08 +08:00
2026-10-21 14:58:17 +08:00
2026-10-21 05:51:24 -07:00
2026-10-21 19:47:52 +08:00
2026-10-21 03:55:40 +08:00
2026-10-14 21:51:19 +08:00
2026-10-14 06:07:08 +08:00
2026-10-17 00:44:02 +08:00
2026-10-17 19:57:28 -07:00
2026-10-18 06:18:34 +08:00
2026-10-21 01:00:00 +08:00
2026-10-20 17:25:51 +08:00
2026-10-18 07:06:15 +08:00
2026-10-19 07:22:01 +08:00
2026-10-18 07:10:44 +08:00
2026-10-11 00:28:24 +08:00
2026-10-21 06:14:03 +08:00
2026-10-22 00:17:11 +08:00
2026-10-21 01:47:09 +08:00
2026-10-21 06:12:09 +08:00
2026-10-20 23:31:45 +08:00
2026-10-11 05:33:05 +08:00
2026-10-12 04:45:17 +08:00
2026-10-14 12:17:54 +08:00
2026-10-14 04:47:34 +08:00
2026-10-14 12:21:26 +08:00
2026-10-10 05:56:01 +08:00
2026-10-13 21:34:38 +08:00
2026-10-14 08:25:53 +08:00
2026-10-10 23:01:54 +08:00
2026-10-21 06:14:03 +08:00
2026-10-21 04:57:08 -07:00
2026-10-17 00:44:02 +08:00
2026-10-21 03:45:34 +08:00
2026-10-13 22:13:22 +08:00
2026-10-22 00:17:11 +08:00
2026-10-17 10:35:31 +00:00
2026-10-17 12:17:44 +08:00
2026-10-17 12:02:26 +08:00
2026-10-17 06:20:23 +00:00
2026-10-14 08:28:14 +08:00
2026-10-14 08:28:14 +08:00
2026-10-17 15:17:03 +08:00
2026-10-17 12:02:26 +08:00
2026-10-17 09:57:43 +08:00
2026-10-20 09:53:53 +08:00
2026-10-19 07:22:01 +08:00
2026-10-15 00:09:42 +08:00
2026-10-14 08:25:53 +08:00
2026-10-21 00:31:00 +08:00
2026-10-11 05:16:03 +08:00
2026-10-21 03:45:10 +08:00
2026-10-13 20:37:48 +08:00
2026-10-12 11:34:02 +08:00
2026-10-11 05:33:15 +08:00
2026-10-20 17:25:19 +08:00
2026-10-22 04:11:15 +08:00
2026-10-11 13:29:50 +08:00
2026-10-20 00:37:45 +08:00
2026-10-11 04:43:02 +08:00
2026-10-14 08:46:50 +08:00
2026-10-14 08:46:50 +08:00
2026-10-11 04:43:02 +08:00
2026-10-13 21:23:58 +08:00
2026-10-11 05:33:15 +08:00
2026-10-11 17:43:28 +08:00
2026-10-11 04:43:02 +08:00
2026-10-14 08:46:50 +08:00
2026-10-11 04:43:02 +08:00
2026-10-14 19:13:17 -07:00
2026-10-12 14:12:44 +08:00
2026-10-21 04:57:08 -07:00
2026-10-08 04:03:24 +08:00
2026-10-19 06:22:32 +08:00
2026-10-09 07:13:32 +08:00
2026-10-21 17:51:24 +08:00
2026-10-17 20:40:55 +08:00
2026-10-17 20:20:53 +08:00
2026-10-18 01:20:43 +00:00
2026-10-22 02:59:27 +08:00
2026-10-17 15:24:57 +08:00
2026-10-15 05:05:24 +08:00
2026-10-15 03:43:29 +08:00
2026-10-14 21:15:34 +08:00
2026-10-14 14:47:26 +08:00
2026-10-14 14:47:26 +08:00
2026-10-14 19:49:08 +08:00
2026-10-07 21:09:33 +08:00
2026-10-14 13:58:12 +08:00
2026-10-14 21:51:19 +08:00
2026-10-10 22:11:14 +08:00
2026-10-18 08:44:41 +08:00
2026-10-14 09:47:57 +08:00
2026-10-20 00:05:22 +08:00
2026-10-11 19:01:33 +08:00
2026-10-10 16:10:39 +08:00
2026-10-21 06:14:03 +08:00
2026-10-14 12:21:26 +08:00
2026-10-20 07:19:58 +08:00
2026-10-12 22:55:55 +08:00
2026-10-12 06:36:45 +08:00
2026-10-13 21:13:01 +08:00
2026-10-20 02:01:00 +08:00
2026-10-14 08:31:16 +08:00
2026-10-19 08:36:53 +08:00
2026-10-22 06:12:42 +08:00
2026-10-11 06:10:10 +08:00
2026-10-15 09:34:00 -07:00
2026-10-14 08:36:38 +08:00
2026-10-11 04:43:02 +08:00
2026-10-21 06:14:03 +08:00
2026-10-11 06:30:56 +08:00
2026-10-16 04:41:40 +08:00
2026-10-14 13:58:18 +08:00
2026-10-11 06:10:10 +08:00
2026-10-17 15:51:55 +08:00
2026-10-22 06:12:42 +08:00
2026-10-11 06:10:10 +08:00
2026-10-13 14:51:23 +08:00
2026-10-16 04:52:19 +08:00
2026-10-14 08:31:16 +08:00
2026-10-21 06:45:34 +08:00
2026-10-13 18:24:40 +08:00
2026-10-14 19:06:36 +08:00
2026-10-14 21:51:19 +08:00
2026-10-21 03:29:31 +08:00
2026-10-14 19:48:30 +08:00
2026-10-20 05:29:43 +08:00
2026-10-13 15:12:17 +08:00
2026-10-20 05:29:43 +08:00
2026-10-18 07:22:14 +08:00
2026-10-18 07:16:10 +08:00
2026-10-17 05:01:46 +08:00
2026-10-17 05:01:46 +08:00
2026-10-11 06:30:56 +08:00
2026-10-21 18:45:50 +00:00
2026-10-17 05:47:35 +08:00
2026-10-21 00:52:53 +08:00
2026-10-14 06:20:22 +08:00
2026-10-21 19:47:52 +08:00
2026-10-17 00:44:02 +08:00
2026-10-21 02:03:17 +08:00
2026-10-13 19:30:50 +08:00
2026-10-18 11:34:44 +00:00
2026-10-13 12:06:41 +08:00
2026-10-12 22:53:30 +08:00
2026-10-21 19:47:52 +08:00
2026-10-18 09:48:11 +08:00
2026-10-11 05:17:10 +08:00
2026-10-22 04:17:14 +08:00
2026-10-14 08:46:50 +08:00
2026-10-09 19:29:31 -07:00
2026-10-19 08:45:04 +08:00
2026-10-17 19:57:28 -07:00
2026-10-17 17:14:16 +08:00
2026-10-14 08:12:33 +08:00
2026-10-15 18:38:19 +00:00
2026-10-14 13:58:15 +08:00
2026-10-21 05:06:28 -07:00