Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update runtime compat data #140

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
272 changes: 234 additions & 38 deletions generator/runtimes/bun/data.json

Large diffs are not rendered by default.

324 changes: 260 additions & 64 deletions generator/runtimes/deno/data.json

Large diffs are not rendered by default.

269 changes: 236 additions & 33 deletions generator/runtimes/edge-light/data.json

Large diffs are not rendered by default.

213 changes: 208 additions & 5 deletions generator/runtimes/fastly/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -5447,6 +5447,51 @@
"result": false,
"message": "Intl is not defined"
},
{
"name": "javascript.builtins.Intl.Collator.Collator.options_ignorePunctuation_parameter",
"info": {
"code": "(function () {\n if (!(\"Intl\" in self)) {\n return { result: false, message: \"Intl is not defined\" };\n }\n if (!(\"Collator\" in Intl)) {\n return { result: false, message: \"Intl.Collator is not defined\" };\n }\n\n function construct(options) {\n new Intl.Collator(\"en\", options);\n }\n return bcd.testOptionParam(construct, null, \"ignorePunctuation\", true);\n})();\n",
"exposure": "Window"
},
"result": false,
"message": "Intl is not defined"
},
{
"name": "javascript.builtins.Intl.Collator.Collator.options_localeMatcher_parameter",
"info": {
"code": "(function () {\n if (!(\"Intl\" in self)) {\n return { result: false, message: \"Intl is not defined\" };\n }\n if (!(\"Collator\" in Intl)) {\n return { result: false, message: \"Intl.Collator is not defined\" };\n }\n\n function construct(options) {\n new Intl.Collator(\"en\", options);\n }\n return bcd.testOptionParam(construct, null, \"localeMatcher\", \"best fit\");\n})();\n",
"exposure": "Window"
},
"result": false,
"message": "Intl is not defined"
},
{
"name": "javascript.builtins.Intl.Collator.Collator.options_numeric_parameter",
"info": {
"code": "(function () {\n if (!(\"Intl\" in self)) {\n return { result: false, message: \"Intl is not defined\" };\n }\n if (!(\"Collator\" in Intl)) {\n return { result: false, message: \"Intl.Collator is not defined\" };\n }\n\n function construct(options) {\n new Intl.Collator(\"en\", options);\n }\n return bcd.testOptionParam(construct, null, \"numeric\", false);\n})();\n",
"exposure": "Window"
},
"result": false,
"message": "Intl is not defined"
},
{
"name": "javascript.builtins.Intl.Collator.Collator.options_sensitivity_parameter",
"info": {
"code": "(function () {\n if (!(\"Intl\" in self)) {\n return { result: false, message: \"Intl is not defined\" };\n }\n if (!(\"Collator\" in Intl)) {\n return { result: false, message: \"Intl.Collator is not defined\" };\n }\n\n function construct(options) {\n new Intl.Collator(\"en\", options);\n }\n return bcd.testOptionParam(construct, null, \"sensitivity\", \"base\");\n})();\n",
"exposure": "Window"
},
"result": false,
"message": "Intl is not defined"
},
{
"name": "javascript.builtins.Intl.Collator.Collator.options_usage_parameter",
"info": {
"code": "(function () {\n if (!(\"Intl\" in self)) {\n return { result: false, message: \"Intl is not defined\" };\n }\n if (!(\"Collator\" in Intl)) {\n return { result: false, message: \"Intl.Collator is not defined\" };\n }\n\n function construct(options) {\n new Intl.Collator(\"en\", options);\n }\n return bcd.testOptionParam(construct, null, \"usage\", \"sort\");\n})();\n",
"exposure": "Window"
},
"result": false,
"message": "Intl is not defined"
},
{
"name": "javascript.builtins.Intl.Collator.supportedLocalesOf",
"info": {
Expand Down Expand Up @@ -16055,7 +16100,7 @@
{
"name": "api.CredentialsContainer.get.identity_option",
"info": {
"code": "(function () {\n var instance = navigator.credentials;\n return bcd.testOptionParam(instance, null, \"get\", \"identity\");\n})();\n",
"code": "(function () {\n var instance = navigator.credentials;\n return bcd.testOptionParam(instance, \"get\", \"identity\", {});\n})();\n",
"exposure": "Window"
},
"result": null,
Expand Down Expand Up @@ -26015,7 +26060,7 @@
{
"name": "api.Element.checkVisibility.options_checkOpacity_parameter",
"info": {
"code": "(function () {\n var instance;\n try {\n instance = document.createElementNS(\"\", \"el\");\n } catch (e) {\n instance = document.createElement(\"b\");\n }\n return bcd.testOptionParam(\n interface,\n \"checkVisibility\",\n \"checkOpacity\",\n true,\n );\n})();\n",
"code": "(function () {\n var instance;\n try {\n instance = document.createElementNS(\"\", \"el\");\n } catch (e) {\n instance = document.createElement(\"b\");\n }\n return bcd.testOptionParam(instance, \"checkVisibility\", \"checkOpacity\", true);\n})();\n",
"exposure": "Window"
},
"result": null,
Expand All @@ -26024,7 +26069,7 @@
{
"name": "api.Element.checkVisibility.options_checkVisibilityCSS_parameter",
"info": {
"code": "(function () {\n var instance;\n try {\n instance = document.createElementNS(\"\", \"el\");\n } catch (e) {\n instance = document.createElement(\"b\");\n }\n return bcd.testOptionParam(\n interface,\n \"checkVisibility\",\n \"checkVisibilityCSS\",\n true,\n );\n})();\n",
"code": "(function () {\n var instance;\n try {\n instance = document.createElementNS(\"\", \"el\");\n } catch (e) {\n instance = document.createElement(\"b\");\n }\n return bcd.testOptionParam(\n instance,\n \"checkVisibility\",\n \"checkVisibilityCSS\",\n true,\n );\n})();\n",
"exposure": "Window"
},
"result": null,
Expand All @@ -26033,7 +26078,16 @@
{
"name": "api.Element.checkVisibility.options_contentVisibilityAuto_parameter",
"info": {
"code": "(function () {\n var instance;\n try {\n instance = document.createElementNS(\"\", \"el\");\n } catch (e) {\n instance = document.createElement(\"b\");\n }\n return bcd.testOptionParam(\n interface,\n \"checkVisibility\",\n \"contentVisibilityAuto\",\n true,\n );\n})();\n",
"code": "(function () {\n var instance;\n try {\n instance = document.createElementNS(\"\", \"el\");\n } catch (e) {\n instance = document.createElement(\"b\");\n }\n return bcd.testOptionParam(\n instance,\n \"checkVisibility\",\n \"contentVisibilityAuto\",\n true,\n );\n})();\n",
"exposure": "Window"
},
"result": null,
"message": "threw ReferenceError: document is not defined"
},
{
"name": "api.Element.checkVisibility.options_opacityProperty_parameter",
"info": {
"code": "(function () {\n var instance;\n try {\n instance = document.createElementNS(\"\", \"el\");\n } catch (e) {\n instance = document.createElement(\"b\");\n }\n return bcd.testOptionParam(\n instance,\n \"checkVisibility\",\n \"opacityProperty\",\n true,\n );\n})();\n",
"exposure": "Window"
},
"result": null,
Expand All @@ -26042,7 +26096,7 @@
{
"name": "api.Element.checkVisibility.options_visibilityProperty_parameter",
"info": {
"code": "(function () {\n var instance;\n try {\n instance = document.createElementNS(\"\", \"el\");\n } catch (e) {\n instance = document.createElement(\"b\");\n }\n return bcd.testOptionParam(\n interface,\n \"checkVisibility\",\n \"visibilityProperty\",\n true,\n );\n})();\n",
"code": "(function () {\n var instance;\n try {\n instance = document.createElementNS(\"\", \"el\");\n } catch (e) {\n instance = document.createElement(\"b\");\n }\n return bcd.testOptionParam(\n instance,\n \"checkVisibility\",\n \"visibilityProperty\",\n true,\n );\n})();\n",
"exposure": "Window"
},
"result": null,
Expand Down Expand Up @@ -33179,6 +33233,119 @@
},
"result": false
},
{
"name": "api.HandwritingDrawing",
"info": {
"code": "\"HandwritingDrawing\" in self",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingDrawing.addStroke",
"info": {
"code": "\"HandwritingDrawing\" in self && \"addStroke\" in HandwritingDrawing.prototype",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingDrawing.clear",
"info": {
"code": "\"HandwritingDrawing\" in self && \"clear\" in HandwritingDrawing.prototype",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingDrawing.getPrediction",
"info": {
"code": "\"HandwritingDrawing\" in self && \"getPrediction\" in HandwritingDrawing.prototype",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingDrawing.getStrokes",
"info": {
"code": "\"HandwritingDrawing\" in self && \"getStrokes\" in HandwritingDrawing.prototype",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingDrawing.removeStroke",
"info": {
"code": "\"HandwritingDrawing\" in self && \"removeStroke\" in HandwritingDrawing.prototype",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingRecognizer",
"info": {
"code": "\"HandwritingRecognizer\" in self",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingRecognizer.finish",
"info": {
"code": "\"HandwritingRecognizer\" in self && \"finish\" in HandwritingRecognizer.prototype",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingRecognizer.startDrawing",
"info": {
"code": "\"HandwritingRecognizer\" in self && \"startDrawing\" in HandwritingRecognizer.prototype",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingStroke",
"info": {
"code": "\"HandwritingStroke\" in self",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingStroke.addPoint",
"info": {
"code": "\"HandwritingStroke\" in self && \"addPoint\" in HandwritingStroke.prototype",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingStroke.clear",
"info": {
"code": "\"HandwritingStroke\" in self && \"clear\" in HandwritingStroke.prototype",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingStroke.getPoints",
"info": {
"code": "\"HandwritingStroke\" in self && \"getPoints\" in HandwritingStroke.prototype",
"exposure": "Window"
},
"result": false
},
{
"name": "api.HandwritingStroke.HandwritingStroke",
"info": {
"code": "bcd.testConstructor('HandwritingStroke')",
"exposure": "Window"
},
"result": false,
"message": "threw ReferenceError: HandwritingStroke is not defined"
},
{
"name": "api.HashChangeEvent",
"info": {
Expand Down Expand Up @@ -35058,6 +35225,24 @@
"result": null,
"message": "threw ReferenceError: document is not defined"
},
{
"name": "api.HTMLCanvasElement.toDataURL.type_parameter_jpeg",
"info": {
"code": "(function () {\n var instance = document.createElement(\"canvas\");\n if (!(\"toDataURL\" in instance)) {\n return { result: false, message: \"instance.toDataURL is not defined\" };\n }\n var blob = instance.toDataURL(\"image/jpeg\");\n return blob.type === \"image/jpeg\";\n})();\n",
"exposure": "Window"
},
"result": null,
"message": "threw ReferenceError: document is not defined"
},
{
"name": "api.HTMLCanvasElement.toDataURL.type_parameter_png",
"info": {
"code": "(function () {\n var instance = document.createElement(\"canvas\");\n if (!(\"toDataURL\" in instance)) {\n return { result: false, message: \"instance.toDataURL is not defined\" };\n }\n var blob = instance.toDataURL(\"image/png\");\n return blob.type === \"image/png\";\n})();\n",
"exposure": "Window"
},
"result": null,
"message": "threw ReferenceError: document is not defined"
},
{
"name": "api.HTMLCanvasElement.toDataURL.type_parameter_webp",
"info": {
Expand Down Expand Up @@ -49487,6 +49672,15 @@
"result": null,
"message": "threw ReferenceError: navigator is not defined"
},
{
"name": "api.Navigator.createHandwritingRecognizer",
"info": {
"code": "(function () {\n var instance = navigator;\n return !!instance && \"createHandwritingRecognizer\" in instance;\n})();\n",
"exposure": "Window"
},
"result": null,
"message": "threw ReferenceError: navigator is not defined"
},
{
"name": "api.Navigator.credentials",
"info": {
Expand Down Expand Up @@ -49883,6 +50077,15 @@
"result": null,
"message": "threw ReferenceError: navigator is not defined"
},
{
"name": "api.Navigator.queryHandwritingRecognizer",
"info": {
"code": "(function () {\n var instance = navigator;\n return !!instance && \"queryHandwritingRecognizer\" in instance;\n})();\n",
"exposure": "Window"
},
"result": null,
"message": "threw ReferenceError: navigator is not defined"
},
{
"name": "api.Navigator.registerProtocolHandler",
"info": {
Expand Down
Loading