mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
fix typos (#1083)
This commit is contained in:
parent
5fbe6a242c
commit
d2df67e822
9 changed files with 13 additions and 13 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ pub fn tcp_read<T: AsMut<[u8]>>(
|
|||
resource: Resource,
|
||||
mut buf: T,
|
||||
) -> EagerRead<Resource, T> {
|
||||
// Unforunately we can't just call read() on tokio::net::TcpStream
|
||||
// Unfortunately we can't just call read() on tokio::net::TcpStream
|
||||
let fd = (*tcp_stream).as_raw_fd();
|
||||
let mut std_tcp_stream = unsafe { std::net::TcpStream::from_raw_fd(fd) };
|
||||
let read_result = std_tcp_stream.read(buf.as_mut());
|
||||
|
|
|
@ -257,7 +257,7 @@ fn test_v8_set_flags_preprocess_2() {
|
|||
pub fn v8_set_flags(args: Vec<String>) -> Vec<String> {
|
||||
// deno_set_v8_flags(int* argc, char** argv) mutates argc and argv to remove
|
||||
// flags that v8 understands.
|
||||
// First parse core args, then converto to a vector of C strings.
|
||||
// First parse core args, then convert to a vector of C strings.
|
||||
let (argv, rest) = v8_set_flags_preprocess(args);
|
||||
let mut argv = argv
|
||||
.iter()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
// Think of Resources as File Descriptors. They are integers that are allocated
|
||||
// by the privlaged side of Deno to refer to various resources. The simplest
|
||||
// by the privileged side of Deno to refer to various resources. The simplest
|
||||
// example are standard file system files and stdio - but there will be other
|
||||
// resources added in the future that might not correspond to operating system
|
||||
// level File Descriptors. To avoid confusion we call them "resources" not "file
|
||||
|
|
Loading…
Add table
Reference in a new issue