- 13 12月, 2018 3 次提交
-
-
由 Bartek Iwańczuk 提交于
-
由 Tnarita0000 提交于
-
由 ggtmtmgg 提交于
-
- 12 12月, 2018 11 次提交
-
-
由 F001 提交于
-
-
-
-
由 Ryan Dahl 提交于
This was introduced because Tokio would swallow panics. This is still the case, but this panic handler causes more problems than it solves. It requires people to know how to use debuggers to inspect stacktraces. TODO: - Fix Tokio to not swallow errors. - Be vigilant in the intrim to not introduce broken tests due to this unfortunate "feature" of tokio.
-
由 Ryan Dahl 提交于
-
由 Ryan Dahl 提交于
This is more optimial and this fixes a problem where occasionally remove_and_symlink will error with: gen/compiler_bundle/main.js --sourcemapFile /Users/rld/src/deno --silent Traceback (most recent call last): File "../../tools/run_node.py", line 18, in <module> util.remove_and_symlink(target_rel, "node_modules", True) File "/Users/rld/src/deno/tools/util.py", line 103, in remove_and_symlink symlink(target, name, target_is_dir) File "/Users/rld/src/deno/tools/util.py", line 141, in symlink os.symlink(target, name) OSError: [Errno 17] File exists
-
由 Ryan Dahl 提交于
-
由 Ryan Dahl 提交于
-
由 Ryan Dahl 提交于
This bring it inline with terminology used in V8 See ResolveCallback in v8.h
-
由 Ryan Dahl 提交于
Continuation of the work done in c113df.
-
- 11 12月, 2018 3 次提交
- 10 12月, 2018 1 次提交
-
-
由 binaryta 提交于
In collaboration with @yushimatenjin
-
- 09 12月, 2018 1 次提交
-
-
- 08 12月, 2018 5 次提交
-
-
由 Bert Belder 提交于
-
由 Bert Belder 提交于
-
由 Ryan Dahl 提交于
- Don't crash when .mime file not exist in cache (#1291) - Process source maps in Rust instead of JS (#1280) - Use alternate TextEncoder/TextDecoder implementation (#1281) - Upgrade flatbuffers to 80d148 - Fix memory leaks (#1265, #1275)
-
由 Bartek Iwańczuk 提交于
-
-
- 07 12月, 2018 3 次提交
-
-
由 Ryan Dahl 提交于
- Improves speed and binary size significantly. - Makes deno_last_exception() output a JSON structure. - Isolate::execute and Isolate::event_loop now return structured, mapped JSError objects on errors. - Removes libdeno functions: libdeno.setGlobalErrorHandler() libdeno.setPromiseRejectHandler() libdeno.setPromiseErrorExaminer() In collaboration with Ryan Dahl.
-
由 Kitson Kelly 提交于
-
由 Kitson Kelly 提交于
This is faster and smaller.
-
- 05 12月, 2018 4 次提交
-
-
由 F001 提交于
`Isolate::from_void_ptr` is renamed to `from_raw_ptr`, to keep consistency with std libs. It is changed to `unsafe` function, because it can't guarantee that the input is valid. This guarantee should be provided by the caller. Its return type is changed to `&Isolate`, because `&mut Isolate` type requires that no other aliases co-exist in this period of time, this does not seem true. So I changed most of the methods to accept shared reference `&Isolate`. It is easier to reason about the correctness of `unsafe` blocks. As long as these shared references are in the same thread, these `unsafe` codes are probably correct.
-
由 Ryan Dahl 提交于
-
由 Ryan Dahl 提交于
In preperation for adding other callbacks to libdeno.
-
由 F001 提交于
The main purpose of this PR is to remove the `'static` lifetime bound in type OpCreator = fn(state: &Arc<IsolateState>, base: &msg::Base, data: &'static mut [u8]) -> Box<Op>; The reason is simple: it is plain wrong, the `data` is actually not `'static`. It is created when the message is sent from C side, and will be recycled when the message is responded. It violates the definition of `'static` lifetime. If someone save this pointer somewhere else, and reuse it later again, uninitialized memory could be accessed. This kind of memory unsafety does not happen yet because the logic is carefully organized in this project. Lifetime constraints are maintained by code convention. It could be more robust if we can express this constraint by Rust's type system. Basic idea: tie buffer's lifetime to an object's lifetime, a.k.a, RAII. The type `deno_buf` is pretty suitable for this job.
-
- 04 12月, 2018 9 次提交
-
-
由 Ryan Dahl 提交于
-
由 F001 提交于
-
-
由 Ryan Dahl 提交于
For now it only runs test_cc and has to filter out a test which leaks. However we will expand this over time until the entire build is LSAN clean.
-
由 Ryan Dahl 提交于
These were discovered using the LSAN. http://dev.chromium.org/developers/testing/leaksanitizer
-
由 Ryan Dahl 提交于
-
由 Ryan Dahl 提交于
This is the second attempt at this patch. The first version was reverted in 2ffd78da The problem, I suspect, was that the snapshot was represented as a source_set, which inserted a node into the dependency tree. include_bytes does properly insert the snapshot into rustc's depfile but the use of source_set confused gn. Now the that the deno executable has the create_deno_snapshot as a direct dependency, changes will be propagated.
-
由 Bert Belder 提交于
-
由 Bert Belder 提交于
This is a first step toward removing the fix_symlinks() hack from tools/third_party.py.
-