Files
react-native-devtools-frontend/test/webtests/http/tests/devtools/sources/debugger-breakpoints/resources/breakpoint.js
T
Tim van der Lippe d8c23debbe Fix clang-format configuration
The configuration was only including files that were in a commit diff.
This causes issues where we generate sources during the PRESUBMIT (which
are not in the git diff at that point in time) and don't format.

At the same time, we remove the complicated logic to reuse the
`.eslintignore` for clang-format purposes and use the correct
`.clang-format` "DisableFormat" options to disable formatting in various
directories.

Roll CodeMirror: ignore

Change-Id: I21b95a6e09c5d6bf036bf1aace103d6c26823ecc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2091445
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-06 12:06:33 +00:00

34 lines
1.1 KiB
JavaScript

/* eslint-disable */
define(['dart_sdk'], function(dart_sdk) {
'use strict';
const core = dart_sdk.core;
const dart = dart_sdk.dart;
const dartx = dart_sdk.dartx;
const _root = Object.create(null);
const breakpoint = Object.create(_root);
const $length = dartx.length;
const $codeUnits = dartx.codeUnits;
const $runes = dartx.runes;
const $isNotEmpty = dartx.isNotEmpty;
let StringAndListTovoid = () => (StringAndListTovoid = dart.constFn(dart.fnType(dart.void, [core.String, core.List])))();
let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.fnType(dart.void, [])))();
breakpoint._foo = function(a, b) {
const val1 = a[$codeUnits][$length];
const val2 = a[$runes].last;
const val3 = dart.test(b[$isNotEmpty]) ? 42 : null;
core.print(val3);
};
dart.fn(breakpoint._foo, StringAndListTovoid());
breakpoint.main = function() {
breakpoint._foo('hello', []);
};
dart.fn(breakpoint.main, VoidTovoid());
dart.trackLibraries('breakpoint', {'breakpoint.dart': breakpoint}, null);
// Exports:
return {
breakpoint: breakpoint
};
});
// # sourceMappingURL=breakpoint.js.map