Skip to content

Commit

Permalink
js: Added optional browser requirements from ES2021 & Safari 14-15
Browse files Browse the repository at this point in the history
  • Loading branch information
cederberg committed Dec 19, 2024
1 parent be0f933 commit 94dcf7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/plugin/system/files/js/RapidContext_Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,24 @@
"navigator.credentials.get",
// "Object.hasOwn",
"Promise.any",
"String.prototype.matchAll",
"String.prototype.replaceAll",
"SubtleCrypto.prototype.digest",
// "Temporal",
"ResizeObserver",
"WeakRef",
// { test: "HTMLScriptElement.supports('module')", name: "ES module script", },
// { test: "HTMLScriptElement.supports('importmap')", name: "ES module import maps", },
{ test: "123_456.78_9_12 == 123456.78912", name: "numeric separators (_)" },
{ test: "new Error('test', { cause: true }).cause", name: "error cause property" },
{ test: "var a = null; a?.dummy; true", name: "optional chaining operator (?.)" },
{ test: "null ?? true", name: "nullish coalescing operator (??)" },
{ test: "var a = true; a &&= true; a", name: "logical and assignment operator (&&=)" },
{ test: "var a = false; a ||= true; a", name: "logical or assignment operator (||=)" },
{ test: "var a = null; a ??= true; a", name: "nullish assignment operator (??=)" },
{ test: "class Test { a; b = 123; static c = true; }; Test.c", name: "public class fields" },
{ test: "class Test { #a; #b = 123; static #c = 0; }; true", name: "private class fields" },
{ test: "class Test { static { 1; } }; true", name: "static class initialization block" },
// "selector(:has(*))",
"appearance: none",
"inset: 0",
Expand Down

0 comments on commit 94dcf7c

Please sign in to comment.