Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
deno
提交
77114fbd
D
deno
项目概览
张重言
/
deno
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
deno
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
77114fbd
编写于
1月 22, 2019
作者:
Y
Yoshiya Hinosawa
提交者:
Ryan Dahl
1月 21, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update license lines (#1557)
上级
7eb74ba0
变更
145
隐藏空白更改
内联
并排
Showing
145 changed file
with
148 addition
and
122 deletion
+148
-122
BUILD.gn
BUILD.gn
+1
-1
Cargo.toml
Cargo.toml
+1
-1
build.rs
build.rs
+1
-1
build_extra/flatbuffers/rust/rust_flatbuffer.gni
build_extra/flatbuffers/rust/rust_flatbuffer.gni
+1
-0
build_extra/rust/BUILD.gn
build_extra/rust/BUILD.gn
+1
-1
build_extra/rust/empty_crate.rs
build_extra/rust/empty_crate.rs
+1
-0
build_extra/rust/get_cargo_info.cmd
build_extra/rust/get_cargo_info.cmd
+1
-0
build_extra/rust/get_cargo_info.py
build_extra/rust/get_cargo_info.py
+1
-1
build_extra/rust/get_rustc_info.cmd
build_extra/rust/get_rustc_info.cmd
+1
-0
build_extra/rust/get_rustc_info.py
build_extra/rust/get_rustc_info.py
+1
-1
build_extra/rust/run.py
build_extra/rust/run.py
+1
-0
build_extra/rust/rust.gni
build_extra/rust/rust.gni
+1
-0
gclient_config.py
gclient_config.py
+1
-1
js/buffer.ts
js/buffer.ts
+2
-0
js/buffer_test.ts
js/buffer_test.ts
+2
-0
js/dir.ts
js/dir.ts
+1
-1
js/dir_test.ts
js/dir_test.ts
+1
-1
js/dispatch.ts
js/dispatch.ts
+1
-1
js/dom_file.ts
js/dom_file.ts
+1
-1
js/dom_types.ts
js/dom_types.ts
+2
-0
js/errors.ts
js/errors.ts
+1
-1
js/event.ts
js/event.ts
+1
-1
js/event_target.ts
js/event_target.ts
+1
-1
js/event_target_test.ts
js/event_target_test.ts
+1
-1
js/event_test.ts
js/event_test.ts
+1
-1
js/fetch.ts
js/fetch.ts
+1
-1
js/fetch_test.ts
js/fetch_test.ts
+1
-1
js/file_info.ts
js/file_info.ts
+1
-1
js/file_test.ts
js/file_test.ts
+1
-1
js/files.ts
js/files.ts
+1
-1
js/files_test.ts
js/files_test.ts
+1
-1
js/flatbuffers.ts
js/flatbuffers.ts
+1
-1
js/form_data.ts
js/form_data.ts
+1
-1
js/form_data_test.ts
js/form_data_test.ts
+1
-1
js/global_eval.ts
js/global_eval.ts
+1
-1
js/globals.ts
js/globals.ts
+1
-1
js/globals_test.ts
js/globals_test.ts
+1
-0
js/headers.ts
js/headers.ts
+1
-1
js/headers_test.ts
js/headers_test.ts
+1
-1
js/io.ts
js/io.ts
+1
-0
js/libdeno.ts
js/libdeno.ts
+1
-1
js/make_temp_dir.ts
js/make_temp_dir.ts
+1
-1
js/make_temp_dir_test.ts
js/make_temp_dir_test.ts
+1
-1
js/metrics.ts
js/metrics.ts
+1
-1
js/metrics_test.ts
js/metrics_test.ts
+1
-1
js/mixins/dom_iterable.ts
js/mixins/dom_iterable.ts
+1
-0
js/mixins/dom_iterable_test.ts
js/mixins/dom_iterable_test.ts
+1
-1
js/mkdir.ts
js/mkdir.ts
+1
-1
js/mkdir_test.ts
js/mkdir_test.ts
+1
-1
js/mock_builtin.js
js/mock_builtin.js
+1
-1
js/net.ts
js/net.ts
+1
-1
js/net_test.ts
js/net_test.ts
+1
-1
js/os.ts
js/os.ts
+1
-1
js/os_test.ts
js/os_test.ts
+1
-1
js/platform.ts
js/platform.ts
+1
-1
js/platform_test.ts
js/platform_test.ts
+1
-1
js/plugins.d.ts
js/plugins.d.ts
+1
-1
js/process.ts
js/process.ts
+1
-1
js/process_test.ts
js/process_test.ts
+1
-1
js/read_dir.ts
js/read_dir.ts
+1
-1
js/read_dir_test.ts
js/read_dir_test.ts
+1
-1
js/read_file.ts
js/read_file.ts
+1
-1
js/read_file_test.ts
js/read_file_test.ts
+1
-1
js/read_link.ts
js/read_link.ts
+1
-1
js/read_link_test.ts
js/read_link_test.ts
+1
-1
js/remove.ts
js/remove.ts
+1
-1
js/remove_test.ts
js/remove_test.ts
+1
-1
js/rename.ts
js/rename.ts
+1
-1
js/rename_test.ts
js/rename_test.ts
+1
-1
js/repl.ts
js/repl.ts
+1
-1
js/resources.ts
js/resources.ts
+1
-1
js/resources_test.ts
js/resources_test.ts
+1
-1
js/stat.ts
js/stat.ts
+1
-1
js/stat_test.ts
js/stat_test.ts
+1
-1
js/symlink.ts
js/symlink.ts
+1
-1
js/symlink_test.ts
js/symlink_test.ts
+1
-1
js/test_util.ts
js/test_util.ts
+1
-1
js/text_encoding.ts
js/text_encoding.ts
+1
-0
js/text_encoding_test.ts
js/text_encoding_test.ts
+1
-1
js/timers.ts
js/timers.ts
+1
-1
js/timers_test.ts
js/timers_test.ts
+1
-1
js/truncate.ts
js/truncate.ts
+1
-1
js/truncate_test.ts
js/truncate_test.ts
+1
-1
js/types.ts
js/types.ts
+1
-1
js/unit_tests.ts
js/unit_tests.ts
+1
-1
js/url.ts
js/url.ts
+1
-1
js/url_search_params.ts
js/url_search_params.ts
+1
-1
js/url_search_params_test.ts
js/url_search_params_test.ts
+1
-1
js/url_test.ts
js/url_test.ts
+1
-1
js/util.ts
js/util.ts
+1
-1
js/write_file.ts
js/write_file.ts
+1
-1
js/write_file_test.ts
js/write_file_test.ts
+1
-1
libdeno/BUILD.gn
libdeno/BUILD.gn
+1
-1
libdeno/api.cc
libdeno/api.cc
+1
-1
libdeno/binding.cc
libdeno/binding.cc
+1
-1
libdeno/deno.h
libdeno/deno.h
+1
-1
libdeno/file_util.cc
libdeno/file_util.cc
+1
-1
libdeno/file_util.h
libdeno/file_util.h
+1
-1
libdeno/file_util_test.cc
libdeno/file_util_test.cc
+1
-1
libdeno/internal.h
libdeno/internal.h
+1
-1
libdeno/libdeno_test.cc
libdeno/libdeno_test.cc
+1
-1
libdeno/libdeno_test.js
libdeno/libdeno_test.js
+1
-1
libdeno/snapshot_creator.cc
libdeno/snapshot_creator.cc
+1
-1
libdeno/test.cc
libdeno/test.cc
+1
-1
libdeno/test.h
libdeno/test.h
+1
-1
rollup.config.js
rollup.config.js
+1
-1
src/msg.rs
src/msg.rs
+1
-0
src/permissions.rs
src/permissions.rs
+1
-0
src/tokio_write.rs
src/tokio_write.rs
+1
-0
src/workers.rs
src/workers.rs
+1
-1
tools/benchmark_test.py
tools/benchmark_test.py
+1
-1
tools/build.py
tools/build.py
+1
-1
tools/build_test.py
tools/build_test.py
+1
-1
tools/deno_dir_test.py
tools/deno_dir_test.py
+1
-1
tools/docs.py
tools/docs.py
+1
-1
tools/http_benchmark.py
tools/http_benchmark.py
+1
-1
tools/http_server.py
tools/http_server.py
+1
-1
tools/hyper_hello.rs
tools/hyper_hello.rs
+1
-1
tools/integration_tests.py
tools/integration_tests.py
+1
-1
tools/lint.py
tools/lint.py
+1
-1
tools/node_http.js
tools/node_http.js
+1
-1
tools/node_tcp.js
tools/node_tcp.js
+1
-1
tools/permission_prompt_test.py
tools/permission_prompt_test.py
+1
-0
tools/permission_prompt_test.ts
tools/permission_prompt_test.ts
+1
-0
tools/prebuilt.py
tools/prebuilt.py
+1
-0
tools/prefetch_test.py
tools/prefetch_test.py
+1
-1
tools/repl_test.py
tools/repl_test.py
+1
-1
tools/run_node.py
tools/run_node.py
+1
-0
tools/rustfmt.toml
tools/rustfmt.toml
+1
-1
tools/setup.py
tools/setup.py
+1
-1
tools/setup_test.py
tools/setup_test.py
+1
-1
tools/sha256sum.py
tools/sha256sum.py
+1
-1
tools/sync_third_party.py
tools/sync_third_party.py
+1
-1
tools/test.py
tools/test.py
+1
-1
tools/third_party.py
tools/third_party.py
+1
-1
tools/throughput_benchmark.py
tools/throughput_benchmark.py
+1
-1
tools/ts_library_builder/ast_util.ts
tools/ts_library_builder/ast_util.ts
+1
-0
tools/ts_library_builder/main.ts
tools/ts_library_builder/main.ts
+1
-0
tools/ts_library_builder/test.ts
tools/ts_library_builder/test.ts
+1
-0
tools/unit_tests.py
tools/unit_tests.py
+1
-1
tools/upload_website.py
tools/upload_website.py
+1
-1
tools/util.py
tools/util.py
+1
-1
tools/util_test.py
tools/util_test.py
+1
-1
website/app.js
website/app.js
+1
-1
website/app_test.js
website/app_test.js
+1
-1
未找到文件。
BUILD.gn
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import("//build/toolchain/cc_wrapper.gni")
import("//build_extra/flatbuffers/flatbuffer.gni")
import("//build_extra/flatbuffers/rust/rust_flatbuffer.gni")
...
...
Cargo.toml
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
# Dummy package info required by `cargo fetch`.
# Use tools/sync_third_party.py to install deps after editing this file.
# Deno does not build with cargo. Deno uses a build system called gn.
...
...
build.rs
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
// Run "cargo build -vv" if you want to see gn output.
...
...
build_extra/flatbuffers/rust/rust_flatbuffer.gni
浏览文件 @
77114fbd
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import("//build_extra/rust/rust.gni")
# TODO(ry) "flatbuffer.gni" should be "flatbuffers.gni" we should be consistent
...
...
build_extra/rust/BUILD.gn
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
# Dependencies between third party crates is mapped out here manually. This is
# not so difficult and having it be tedious to add dependencies might help us
...
...
build_extra/rust/empty_crate.rs
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
fn
main
()
{}
build_extra/rust/get_cargo_info.cmd
浏览文件 @
77114fbd
REM Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
@
"
%PYTHON_EXE%
"
"
%~dpn0
.py"
%
*
build_extra/rust/get_cargo_info.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
sys
import
re
...
...
build_extra/rust/get_rustc_info.cmd
浏览文件 @
77114fbd
REM Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
@
"
%PYTHON_EXE%
"
"
%~dpn0
.py"
%
*
build_extra/rust/get_rustc_info.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
#
# The Rust compiler normally builds source code directly into an executable.
# Internally, object code is produced, and then the (system) linker is called,
...
...
build_extra/rust/run.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
# This file just executes its arguments, except that also adds GN_OUT_DIR and
# CARGO_PKG_VERSION to the environ. This is for compatibility with cargo.
import
subprocess
...
...
build_extra/rust/rust.gni
浏览文件 @
77114fbd
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
declare_args() {
# Absolute path of rust build files.
rust_build = "//build_extra/rust/"
...
...
gclient_config.py
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
solutions
=
[{
'url'
:
'https://chromium.googlesource.com/v8/v8.git@7.2.502.16'
,
'name'
:
'v8'
,
...
...
js/buffer.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
// This code has been ported almost directly from Go's src/bytes/buffer.go
// Copyright 2009 The Go Authors. All rights reserved. BSD license.
// https://github.com/golang/go/blob/master/LICENSE
...
...
js/buffer_test.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import
{
Buffer
,
readAll
}
from
"
deno
"
;
import
*
as
deno
from
"
deno
"
;
// This code has been ported almost directly from Go's src/bytes/buffer_test.go
...
...
js/dir.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
{
assert
}
from
"
./util
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
...
...
js/dir_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/dispatch.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
libdeno
}
from
"
./libdeno
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
*
as
msg
from
"
gen/msg_generated
"
;
...
...
js/dom_file.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
domTypes
from
"
./dom_types
"
;
import
*
as
blob
from
"
./blob
"
;
...
...
js/dom_types.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
/*! ****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
...
...
js/errors.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
Base
,
ErrorKind
}
from
"
gen/msg_generated
"
;
export
{
ErrorKind
}
from
"
gen/msg_generated
"
;
...
...
js/event.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
domTypes
from
"
./dom_types
"
;
import
{
getPrivateValue
}
from
"
./util
"
;
...
...
js/event_target.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
domTypes
from
"
./dom_types
"
;
/* TODO: This is an incomplete implementation to provide functionality
...
...
js/event_target_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assertEqual
}
from
"
./test_util.ts
"
;
test
(
function
addEventListenerTest
()
{
...
...
js/event_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assertEqual
}
from
"
./test_util.ts
"
;
test
(
function
eventInitializedWithType
()
{
...
...
js/fetch.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
assert
,
createResolvable
,
notImplemented
,
isTypedArray
}
from
"
./util
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
{
sendAsync
}
from
"
./dispatch
"
;
...
...
js/fetch_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/file_info.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
/** A FileInfo describes a file and is returned by `stat`, `lstat`,
...
...
js/file_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
function
testFirstArgument
(
arg1
,
expectedSize
)
{
...
...
js/files.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
Reader
,
Writer
,
Closer
,
ReadResult
}
from
"
./io
"
;
import
*
as
dispatch
from
"
./dispatch
"
;
import
*
as
msg
from
"
gen/msg_generated
"
;
...
...
js/files_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
deno
from
"
deno
"
;
import
{
test
,
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
...
...
js/flatbuffers.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
flatbuffers
}
from
"
flatbuffers
"
;
import
*
as
util
from
"
./util
"
;
...
...
js/form_data.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
domTypes
from
"
./dom_types
"
;
import
*
as
blob
from
"
./blob
"
;
import
*
as
domFile
from
"
./dom_file
"
;
...
...
js/form_data_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
test
(
function
formDataHasCorrectNameProp
()
{
...
...
js/global_eval.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
/** If you use the eval function indirectly, by invoking it via a reference
* other than eval, as of ECMAScript 5 it works in the global scope rather than
...
...
js/globals.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
// This is a "special" module, in that it define the global runtime scope of
// Deno, and therefore it defines a lot of the runtime environemnt that code
// is evaluated in. We use this file to automatically build the runtime type
...
...
js/globals_test.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import
{
test
,
assert
}
from
"
./test_util.ts
"
;
test
(
function
globalThisExists
()
{
...
...
js/headers.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
domTypes
from
"
./dom_types
"
;
import
{
DomIterableMixin
}
from
"
./mixins/dom_iterable
"
;
import
{
requiredArguments
}
from
"
./util
"
;
...
...
js/headers_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/io.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
// Interfaces 100% copied from Go.
// Documentation liberally lifted from them too.
// Thank you! We love Go!
...
...
js/libdeno.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
globalEval
}
from
"
./global_eval
"
;
// The libdeno functions are moved so that users can't access them.
...
...
js/make_temp_dir.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
*
as
dispatch
from
"
./dispatch
"
;
...
...
js/make_temp_dir_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/metrics.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
{
assert
}
from
"
./util
"
;
...
...
js/metrics_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
testPerm
,
assert
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/mixins/dom_iterable.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import
{
DomIterable
}
from
"
../dom_types
"
;
import
{
globalEval
}
from
"
../global_eval
"
;
import
{
requiredArguments
}
from
"
../util
"
;
...
...
js/mixins/dom_iterable_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assert
,
assertEqual
}
from
"
../test_util.ts
"
;
import
{
DomIterableMixin
}
from
"
deno
"
;
...
...
js/mkdir.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
*
as
dispatch
from
"
./dispatch
"
;
...
...
js/mkdir_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/mock_builtin.js
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
export
default
undefined
;
js/net.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
ReadResult
,
Reader
,
Writer
,
Closer
}
from
"
./io
"
;
import
*
as
msg
from
"
gen/msg_generated
"
;
import
{
assert
,
notImplemented
}
from
"
./util
"
;
...
...
js/net_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
deno
from
"
deno
"
;
import
{
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
{
deferred
}
from
"
deno
"
;
...
...
js/os.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
{
assert
}
from
"
./util
"
;
import
*
as
util
from
"
./util
"
;
...
...
js/os_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/platform.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
// Do not add unsupported platforms.
export
interface
Platform
{
...
...
js/platform_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assert
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/plugins.d.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
// This allows TypeScript to resolve any modules that end with `!string`
// as there is a rollup plugin that will take any mids ending with `!string`
...
...
js/process.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
dispatch
from
"
./dispatch
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
*
as
msg
from
"
gen/msg_generated
"
;
...
...
js/process_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
{
run
,
DenoError
,
ErrorKind
}
from
"
deno
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/read_dir.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
*
as
dispatch
from
"
./dispatch
"
;
...
...
js/read_dir_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
import
{
FileInfo
}
from
"
deno
"
;
...
...
js/read_file.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
{
assert
}
from
"
./util
"
;
...
...
js/read_file_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/read_link.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
{
assert
}
from
"
./util
"
;
...
...
js/read_link_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/remove.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
*
as
dispatch
from
"
./dispatch
"
;
...
...
js/remove_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/rename.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
*
as
dispatch
from
"
./dispatch
"
;
...
...
js/rename_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/repl.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
{
assert
}
from
"
./util
"
;
...
...
js/resources.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
{
assert
}
from
"
./util
"
;
...
...
js/resources_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
testPerm
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/stat.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
*
as
dispatch
from
"
./dispatch
"
;
...
...
js/stat_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/symlink.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
*
as
dispatch
from
"
./dispatch
"
;
...
...
js/symlink_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/test_util.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
//
// We want to test many ops in deno which have different behavior depending on
// the permissions set. These tests can specify which permissions they expect,
...
...
js/text_encoding.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
// The following code is based off of text-encoding at:
// https://github.com/inexorabletash/text-encoding
//
...
...
js/text_encoding_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
test
(
function
atobSuccess
()
{
...
...
js/timers.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
assert
}
from
"
./util
"
;
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
...
...
js/timers_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assertEqual
}
from
"
./test_util.ts
"
;
function
deferred
()
{
...
...
js/truncate.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
*
as
dispatch
from
"
./dispatch
"
;
...
...
js/truncate_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
testPerm
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
js/types.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
export
type
TypedArray
=
Uint8Array
|
Float32Array
|
Int32Array
;
// tslint:disable:max-line-length
...
...
js/unit_tests.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
// This test is executed as part of tools/test.py
// But it can also be run manually: ./target/debug/deno js/unit_tests.ts
...
...
js/url.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
urlSearchParams
from
"
./url_search_params
"
;
interface
URLParts
{
...
...
js/url_search_params.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import
{
requiredArguments
}
from
"
./util
"
;
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
export
class
URLSearchParams
{
private
params
:
Array
<
[
string
,
string
]
>
=
[];
...
...
js/url_search_params_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
test
(
function
urlSearchParamsInitString
()
{
...
...
js/url_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
test
(
function
urlParsing
()
{
...
...
js/util.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
TypedArray
}
from
"
./types
"
;
let
logDebug
=
false
;
...
...
js/write_file.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
*
as
msg
from
"
gen/msg_generated
"
;
import
*
as
flatbuffers
from
"
./flatbuffers
"
;
import
*
as
dispatch
from
"
./dispatch
"
;
...
...
js/write_file_test.ts
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
testPerm
,
assert
,
assertEqual
}
from
"
./test_util.ts
"
;
import
*
as
deno
from
"
deno
"
;
...
...
libdeno/BUILD.gn
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import("//third_party/v8/gni/v8.gni")
import("./deno.gni")
...
...
libdeno/api.cc
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
...
libdeno/binding.cc
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
...
libdeno/deno.h
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
#ifndef DENO_H_
#define DENO_H_
#include <stddef.h>
...
...
libdeno/file_util.cc
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
#include <inttypes.h>
#include <limits.h>
#include <stdint.h>
...
...
libdeno/file_util.h
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
#ifndef FILE_UTIL_H_
#define FILE_UTIL_H_
...
...
libdeno/file_util_test.cc
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
#include "testing/gtest/include/gtest/gtest.h"
#include "file_util.h"
...
...
libdeno/internal.h
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
#ifndef INTERNAL_H_
#define INTERNAL_H_
...
...
libdeno/libdeno_test.cc
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
#include "test.h"
TEST
(
LibDenoTest
,
InitializesCorrectly
)
{
...
...
libdeno/libdeno_test.js
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
// A simple runtime that doesn't involve typescript or protobufs to test
// libdeno. Invoked by libdeno_test.cc
...
...
libdeno/snapshot_creator.cc
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
// Hint: --trace_serializer is a useful debugging flag.
#include <fstream>
#include <iostream>
...
...
libdeno/test.cc
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
#include "test.h"
#include "file_util.h"
...
...
libdeno/test.h
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
#ifndef TEST_H
#define TEST_H
...
...
rollup.config.js
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
// @ts-check
import
*
as
fs
from
"
fs
"
;
import
path
from
"
path
"
;
...
...
src/msg.rs
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
#![allow(unused_imports)]
#![allow(dead_code)]
#![cfg_attr(
...
...
src/permissions.rs
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
use
atty
;
use
crate
::
flags
::
DenoFlags
;
...
...
src/tokio_write.rs
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
// TODO Submit this file upstream into tokio-io/src/io/write.rs
use
std
::
io
;
use
std
::
mem
;
...
...
src/workers.rs
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
use
crate
::
isolate
::
Buf
;
use
crate
::
isolate
::
Isolate
;
use
crate
::
isolate
::
IsolateState
;
...
...
tools/benchmark_test.py
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
sys
import
os
import
benchmark
...
...
tools/build.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
from
__future__
import
print_function
import
os
import
sys
...
...
tools/build_test.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
sys
from
build
import
main
as
build
from
test
import
main
as
test
...
...
tools/deno_dir_test.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
# Check deno dir is created properly
# Usage: deno_dir_test.py [path to deno dir]
import
os
...
...
tools/docs.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
os
import
tempfile
from
util
import
run
,
root_path
...
...
tools/http_benchmark.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
os
import
sys
import
util
...
...
tools/http_server.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
# Many tests expect there to be an http server on port 4545 servering the deno
# root directory.
import
os
...
...
tools/hyper_hello.rs
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
// Adapted from https://github.com/hyperium/hyper/blob/master/examples/hello.rs
#![deny(warnings)]
...
...
tools/integration_tests.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
# Given a deno executable, this script executes several integration tests with
# it. The tests are stored in /tests/ and each is specified in a .yaml file
# where a description, command line, and output are specified. Optionally an
...
...
tools/lint.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
# Does google-lint on c++ files and ts-lint on typescript files
import
os
...
...
tools/node_http.js
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
const
http
=
require
(
"
http
"
);
const
port
=
process
.
argv
[
2
]
||
"
4544
"
;
console
.
log
(
"
port
"
,
port
);
...
...
tools/node_tcp.js
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
// Note: this is a keep-alive server.
const
{
Server
}
=
require
(
"
net
"
);
const
port
=
process
.
argv
[
2
]
||
"
4544
"
;
...
...
tools/permission_prompt_test.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import
os
import
pty
import
select
...
...
tools/permission_prompt_test.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import
{
args
,
listen
,
env
,
exit
,
makeTempDirSync
,
run
}
from
"
deno
"
;
const
name
=
args
[
1
];
...
...
tools/prebuilt.py
浏览文件 @
77114fbd
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import
sys
import
os
from
util
import
run
,
root_path
...
...
tools/prefetch_test.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
os
import
sys
from
util
import
tests_path
,
run_output
,
build_path
,
executable_suffix
,
green_ok
...
...
tools/repl_test.py
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
os
from
subprocess
import
CalledProcessError
,
PIPE
,
Popen
import
sys
...
...
tools/run_node.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
"""
gn can only run python scripts. This launches a subprocess Node process.
The working dir of this program is out/Debug/ (AKA root_build_dir)
...
...
tools/rustfmt.toml
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
max_width
=
80
tab_spaces
=
2
tools/setup.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
third_party
from
util
import
build_mode
,
build_path
,
enable_ansi_colors
,
root_path
,
run
from
util
import
shell_quote
...
...
tools/setup_test.py
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
os
from
setup
import
gn_string
,
read_gn_args
,
write_gn_args
from
shutil
import
rmtree
...
...
tools/sha256sum.py
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
"""
Computes the SHA256 hash and formats the result.
"""
...
...
tools/sync_third_party.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
# Run this script if you are changing Deno's dependencies.
# To update the deno_third_party git repo after running this, try the following:
# cd third_party
...
...
tools/test.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
# Runs the full test suite.
# Usage: ./tools/test.py out/Debug
import
os
...
...
tools/third_party.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
# This script contains helper functions to work with the third_party subrepo.
import
os
...
...
tools/throughput_benchmark.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
# Performs benchmark and append data to //website/data.json.
# If //website/data.json doesn't exist, this script tries to import it from
# gh-pages branch.
...
...
tools/ts_library_builder/ast_util.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import
{
relative
}
from
"
path
"
;
import
{
readFileSync
}
from
"
fs
"
;
import
{
EOL
}
from
"
os
"
;
...
...
tools/ts_library_builder/main.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import
*
as
path
from
"
path
"
;
import
{
main
as
buildRuntimeLib
}
from
"
./build_library
"
;
...
...
tools/ts_library_builder/test.ts
浏览文件 @
77114fbd
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
// Run this manually with:
//
// ./node_modules/.bin/ts-node --project tools/ts_library_builder/tsconfig.json tools/ts_library_builder/test.ts
...
...
tools/unit_tests.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
util
import
sys
import
subprocess
...
...
tools/upload_website.py
浏览文件 @
77114fbd
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
os
import
tempfile
from
util
import
run
,
root_path
...
...
tools/util.py
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
os
import
re
import
shutil
...
...
tools/util_test.py
浏览文件 @
77114fbd
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
from
util
import
pattern_match
,
parse_exit_code
,
shell_quote_win
import
util
import
os
...
...
website/app.js
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
export
async
function
getJson
(
path
)
{
return
(
await
fetch
(
path
)).
json
();
...
...
website/app_test.js
浏览文件 @
77114fbd
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Copyright 2018
-2019
the Deno authors. All rights reserved. MIT license.
import
{
test
,
testPerm
,
assert
,
assertEqual
}
from
"
../js/test_util.ts
"
;
import
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录