summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJoseph <jngugi88@gmail.com>2018-10-24 18:54:34 +0300
committerRyan Dahl <ry@tinyclouds.org>2018-10-24 08:54:34 -0700
commitd2df67e8221877a14b77d5e185367717afe503f8 (patch)
treefc621b1dac796bf248093b5a85731d62f055b7ad /js
parent5fbe6a242c36b3836fe646ab037a03a6c80e32d8 (diff)
fix typos (#1083)
Diffstat (limited to 'js')
-rw-r--r--js/blob.ts4
-rw-r--r--js/compiler_test.ts2
-rw-r--r--js/dom_types.ts4
-rw-r--r--js/flatbuffers.ts2
-rw-r--r--js/timers.ts6
-rw-r--r--js/v8_source_maps.ts2
6 files changed, 10 insertions, 10 deletions
diff --git a/js/blob.ts b/js/blob.ts
index ecd9853ed..b57452dd5 100644
--- a/js/blob.ts
+++ b/js/blob.ts
@@ -20,9 +20,9 @@ export class DenoBlob implements domTypes.Blob {
}
options = options || {};
- // Set ending property's default value to "tranparent".
+ // Set ending property's default value to "transparent".
if (!options.hasOwnProperty("ending")) {
- options.ending = "tranparent";
+ options.ending = "transparent";
}
if (options.type && !containsOnlyASCII(options.type)) {
diff --git a/js/compiler_test.ts b/js/compiler_test.ts
index 7d1bdc150..6bf7ac2d6 100644
--- a/js/compiler_test.ts
+++ b/js/compiler_test.ts
@@ -18,7 +18,7 @@ interface ModuleInfo {
const compilerInstance = DenoCompiler.instance();
-// References to orignal items we are going to mock
+// References to original items we are going to mock
const originals = {
_globalEval: (compilerInstance as any)._globalEval,
_log: (compilerInstance as any)._log,
diff --git a/js/dom_types.ts b/js/dom_types.ts
index 3435825b1..bd73639ce 100644
--- a/js/dom_types.ts
+++ b/js/dom_types.ts
@@ -59,7 +59,7 @@ export interface HTMLFormElement {
// TODO
}
-type EndingType = "tranparent" | "native";
+type EndingType = "transparent" | "native";
export interface BlobPropertyBag {
type?: string;
@@ -440,7 +440,7 @@ export interface Request extends Body {
*/
readonly integrity: string;
/** Returns a boolean indicating whether or not request is for a history
- * navigation (a.k.a. back-foward navigation).
+ * navigation (a.k.a. back-forward navigation).
*/
readonly isHistoryNavigation: boolean;
/** Returns a boolean indicating whether or not request is for a reload
diff --git a/js/flatbuffers.ts b/js/flatbuffers.ts
index bfb71f9d1..926cb7425 100644
--- a/js/flatbuffers.ts
+++ b/js/flatbuffers.ts
@@ -15,7 +15,7 @@ globalBuilder.inUse = false;
// This is a wrapper around the real Builder .
// The purpose is to reuse a single ArrayBuffer for every message.
// We can do this because the "control" messages sent to the privileged
-// side are guarenteed to be used during the call to libdeno.send().
+// side are guaranteed to be used during the call to libdeno.send().
export function createBuilder(): Builder {
// tslint:disable-next-line:no-any
const gb = globalBuilder as any;
diff --git a/js/timers.ts b/js/timers.ts
index 292f1c613..83f285f12 100644
--- a/js/timers.ts
+++ b/js/timers.ts
@@ -23,7 +23,7 @@ interface Timer {
// about a month, this is no longer true, and Deno explodes.
// TODO(piscisaureus): fix that ^.
const EPOCH = Date.now();
-const APOCALYPS = 2 ** 32 - 2;
+const APOCALYPSE = 2 ** 32 - 2;
let globalTimeoutDue: number | null = null;
@@ -34,7 +34,7 @@ const dueMap: { [due: number]: Timer[] } = Object.create(null);
function getTime() {
// TODO: use a monotonic clock.
const now = Date.now() - EPOCH;
- assert(now >= 0 && now < APOCALYPS);
+ assert(now >= 0 && now < APOCALYPSE);
return now;
}
@@ -175,7 +175,7 @@ function setTimer<Args extends Array<unknown>>(
): number {
// If any `args` were provided (which is uncommon), bind them to the callback.
const callback: () => void = args.length === 0 ? cb : cb.bind(null, ...args);
- // In the browser, the delay value must be coercable to an integer between 0
+ // In the browser, the delay value must be coercible to an integer between 0
// and INT32_MAX. Any other value will cause the timer to fire immediately.
// We emulate this behavior.
const now = getTime();
diff --git a/js/v8_source_maps.ts b/js/v8_source_maps.ts
index bb7424f0b..f73cc2d38 100644
--- a/js/v8_source_maps.ts
+++ b/js/v8_source_maps.ts
@@ -149,7 +149,7 @@ function CallSiteToString(frame: CallSite): string {
const isMethodCall = !(frame.isToplevel() || isConstructor);
if (isMethodCall) {
let typeName = frame.getTypeName();
- // Fixes shim to be backward compatable with Node v0 to v4
+ // Fixes shim to be backward compatible with Node v0 to v4
if (typeName === "[object Object]") {
typeName = "null";
}