You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Regex** uses `//` as constructor operator (distinct from `/` division):
293
+
- Division: `['/', a, b]`
294
+
- Regex: `['//', pattern]` or `['//', pattern, flags]`
286
295
287
296
**Template literals** must be operations — they contain sub-expressions to evaluate.
288
297
289
-
**Units, regex, BigInt** can be either operators or string literals — parser decides, evaluator must match.
298
+
**Note**: For full JSON serialization portability, non-JSON primitives should use constructor form. JS-only values (`undefined`, `NaN`, `Infinity`) work in JS runtime but serialize to `null`.
0 commit comments