Skip to content

Instantly share code, notes, and snippets.

View mraleph's full-sized avatar
🐌

Slava Egorov mraleph

🐌
View GitHub Profile
This file has been truncated, but you can view the full file.
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/fail_test.dart
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/pass_test.dart
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/crash1_test.dart
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/crash2_test.dart
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/syntax_error_test.broken_dart
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/missing_import_test.broken_dart
⏩ RUNNING: cd packages/flutter_driver; ../../bin/flutter drive --use-existing-app -t test_driver/failure.dart
⏩ RUNNING: cd packages/flutter; ../../bin/flutter test --local-engine=host_debug --pre
abstract class B {
}
class C extends B {
bool c;
}
abstract class Base<T extends B> {
T get f => null;
}
#define __ f+=
struct Bind {
Bind(BlockEntryInstr* block) : block(block) { }
BlockEntryInstr* block;
}
Fragment operator + (const Fragment& f, const Bind& bind) {
return Fragment(f.entry, bind.block);
}
@mraleph
mraleph / output
Last active November 29, 2017 09:03
╰─$ lua /tmp/x.lua
true I yielded
I resumed
true I am done
--- Raw source ---
(arr) {
var res = 0;
for (var i = 0; i < arr.length; i++) {
res ^= arr[i];
}
return res;
}
class Nothing { const Nothing(); }
class Pipeable {
var value = const Nothing();
operator |(f) {
if (f == const Nothing()) {
return value;
} else if (value == const Nothing()) {
value = f();
} else {
value = f(value);
diff --git a/runtime/bin/platform_linux.cc b/runtime/bin/platform_linux.cc
index e681f034b8..09760e7df8 100644
--- a/runtime/bin/platform_linux.cc
+++ b/runtime/bin/platform_linux.cc
@@ -50,18 +50,18 @@ bool Platform::Initialize() {
perror("sigaddset() failed");
return false;
}
- if (sigaction(SIGSEGV, &act, NULL) != 0) {
- perror("sigaction() failed.");
╭─ ~/src/node ‹master*›
╰─$ alias nodeir='node --trace-turbo                \
                       --trace-phase=Z              \
                       --trace-deopt                \
                       --code-comments              \
                       --hydrogen-track-positions   \
                       --redirect-code-traces       \
                       --print-opt-code'
library mirrors.src.decode;
import 'dart:mirrors' as mirrors;
import 'dart:convert';
/// Create an object of the given type [t] from the given JSON string.
decode(String json, Type t) {
// Get deserialization descriptor for the given type.
// This descriptor describes how to handle the type and all its fields.
final TypeDesc desc = getDesc(t);
//
// This is a reproduction for the race between forking and libnotify
// intialization.
//
// # check that there are no core dumps
// $ ls /cores
// # set core limit
// $ ulimit -c unlimited
// # build the test file
// $ clang++ -o test test.cc