summaryrefslogtreecommitdiff
path: root/ext/webidl
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-06-26 15:10:27 +0200
committerGitHub <noreply@github.com>2023-06-26 09:10:27 -0400
commit801b9ec62d94f201e67d053ee90dae0b70e50a42 (patch)
tree145f840c570dd72258ef309e9d31f100a5aa5786 /ext/webidl
parentad3c494b46c97f0cf91098b7ec2afa576ea7a3dd (diff)
chore: fix typos (#19572)
Diffstat (limited to 'ext/webidl')
-rw-r--r--ext/webidl/00_webidl.js2
-rw-r--r--ext/webidl/internal.d.ts8
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/webidl/00_webidl.js b/ext/webidl/00_webidl.js
index 9454dc392..e5726d1f8 100644
--- a/ext/webidl/00_webidl.js
+++ b/ext/webidl/00_webidl.js
@@ -121,7 +121,7 @@ function type(V) {
case "function":
// Falls through
default:
- // Per ES spec, typeof returns an implemention-defined value that is not any of the existing ones for
+ // Per ES spec, typeof returns an implementation-defined value that is not any of the existing ones for
// uncallable non-standard exotic objects. Yet Type() which the Web IDL spec depends on returns Object for
// such cases. So treat the default case as an object.
return "Object";
diff --git a/ext/webidl/internal.d.ts b/ext/webidl/internal.d.ts
index cc4422a27..3e133cc06 100644
--- a/ext/webidl/internal.d.ts
+++ b/ext/webidl/internal.d.ts
@@ -13,24 +13,24 @@ declare module "ext:deno_webidl/00_webidl.js" {
): any;
interface IntConverterOpts {
/**
- * Wether to throw if the number is outside of the acceptable values for
+ * Whether to throw if the number is outside of the acceptable values for
* this type.
*/
enforceRange?: boolean;
/**
- * Wether to clamp this number to the acceptable values for this type.
+ * Whether to clamp this number to the acceptable values for this type.
*/
clamp?: boolean;
}
interface StringConverterOpts {
/**
- * Wether to treat `null` value as an empty string.
+ * Whether to treat `null` value as an empty string.
*/
treatNullAsEmptyString?: boolean;
}
interface BufferConverterOpts {
/**
- * Wether to allow `SharedArrayBuffer` (not just `ArrayBuffer`).
+ * Whether to allow `SharedArrayBuffer` (not just `ArrayBuffer`).
*/
allowShared?: boolean;
}