Skip to content

Instantly share code, notes, and snippets.

💭
Building a Web runtime for Flutter: http://bit.ly/flutter-web

Yegor yjbanov

💭
Building a Web runtime for Flutter: http://bit.ly/flutter-web
View GitHub Profile
View js_object_cast_error.txt
$ felt build
Running gn...
Generating GN files in: out/host_debug_unopt
Done. Made 672 targets from 223 files in 253ms
Running ninja (with default ninja parallelization)...
ninja: Entering directory `/home/yjbanov/code/flutter/engine/src/out/host_debug_unopt'
[7/17] ACTION //flutter/web_sdk:flutter_dartdevc_kernel_sdk_sound(//build/toolchain/linux:clang_x64)
FAILED: flutter_web_sdk/kernel/amd-sound/dart_sdk.js flutter_web_sdk/kernel/amd-sound/dart_sdk.js.map
python ../../third_party/dart/build/gn_run_binary.py compiled_action /home/yjbanov/code/flutter/engine/src/third_party/dart/tools/sdks/dart-sdk/bin/dart --packages=/home/yjbanov/code/flutter/engine/src/third_party/dart/.packages --dfe=/home/yjbanov/code/flutter/engine/src/third_party/dart/tools/sdks/dart-sdk/bin/snapshots/kernel-service.dart.snapshot /home/yjbanov/code/flutter/engine/src/third_party/dart/pkg/dev_compiler/bin/dartdevc.dart --enable-experiment=non-nullable --sound-null-safety --compile-sdk dart:core dart:ui dart:_engine --no-summarize --pa
View benchmark_at_js.dart
@JS('window.flutter_canvas_kit.BlendMode.Clear.value')
external int get canvasKitBlendModeClear;
@JS('window.flutter_canvas_kit.BlendMode.Src.value')
external int get canvasKitBlendModeSrc;
@JS('window.flutter_canvas_kit.BlendMode.Dst.value')
external int get canvasKitBlendModeDst;
@JS('window.flutter_canvas_kit.BlendMode.SrcOver.value')
View test_pointer_doGuard.dart
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'test_async_utils.dart';
View reading_static_var_during_init.log
at Object.wrapException (http://localhost:34061/oxa3Xvg%2FKNGhAsT2ZmdLTap58t5W329Q/test/canvaskit/path_metrics_test.dart.browser_test.dart.js:1120:17)
at http://localhost:34061/oxa3Xvg%2FKNGhAsT2ZmdLTap58t5W329Q/test/canvaskit/path_metrics_test.dart.browser_test.dart.js:11775:25
at _wrapJsFunctionForAsync_closure.$protected (http://localhost:34061/oxa3Xvg%2FKNGhAsT2ZmdLTap58t5W329Q/test/canvaskit/path_metrics_test.dart.browser_test.dart.js:4434:15)
at _wrapJsFunctionForAsync_closure.call$2 (http://localhost:34061/oxa3Xvg%2FKNGhAsT2ZmdLTap58t5W329Q/test/canvaskit/path_metrics_test.dart.browser_test.dart.js:15290:12)
at StackZoneSpecification__registerBinaryCallback__closure.call$0 (http://localhost:34061/oxa3Xvg%2FKNGhAsT2ZmdLTap58t5W329Q/test/canvaskit/path_metrics_test.dart.browser_test.dart.js:28204:48)
at StackZoneSpecification._stack_zone_specification$_run$1$2 (http://localhost:34061/oxa3Xvg%2FKNGhAsT2ZmdLTap58t5W329Q/test/canvaskit/path_metrics_test.dart.browser_test.dart.js:2812
View null_type_promotion.dart
void _buildSegments() {
assert(_segments.isEmpty, '_buildSegments should be called once');
_isClosed = false;
double distance = 0.0;
bool haveSeenMoveTo = false;
final List<PathCommand> commands = subPath.commands;
double currentX = 0.0, currentY = 0.0;
final Function lineToHandler = (double x, double y) {
final double dx = currentX - x;
View nnbd-dart2js-args
updateNode$11$actions$childrenInHitTestOrder$childrenInTraversalOrder$decreasedValue$flags$id$increasedValue$label$rect$transform$value: function(actions, childrenInHitTestOrder, childrenInTraversalOrder, decreasedValue, flags, id, increasedValue, label, rect, transform, value) {
var t1, matrix32, _null = null;
if (C.JSString_methods.contains$1(H.S(label), "_Required"))
throw H.wrapException(P.Exception_Exception('Value of label is "' + H.S(label) + '" of type ' + J.get$runtimeType$(label).toString$0(0)));
t1 = transform.length;
if (t1 !== 16)
throw H.wrapException(P.ArgumentError$("transform argument must have 16 entries."));
matrix32 = new Float32Array(16);
if (15 >= t1)
return H.ioore(transform, 15);
View main.dart
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
class Foo {
Foo({this.x, this.y});
final int x;
final int y;
toString() => '($x, $y)';
View main.dart
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
class Foo {
Foo({this.x, this.y});
final int x;
final int y;
toString() => '($x, $y)';
@yjbanov
yjbanov / main.dart
Created May 15, 2020
async puzzler
View main.dart
Future<void> foo() => Future<void>.delayed(
Duration.zero,
() { print('foo'); }
);
void bar() async {
await foo();
print('bar');
}
View build-workers.log
4 workers:
[INFO] Running build completed, took 3m 57s
[INFO] Caching finalized dependency graph completed, took 210ms
[INFO] Reading manifest at build/.build.manifest completed, took 1ms
[INFO] Deleting previous outputs in `build` completed, took 119ms
[INFO] Creating merged output dir `build` completed, took 685ms
[INFO] Writing asset manifest completed, took 8ms
[INFO] Succeeded after 3m 58s with 824 outputs (414 actions)
You can’t perform that action at this time.