Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit ef036c3

Browse files
chore: run format on synth (#788)
1 parent 94e7255 commit ef036c3

File tree

5 files changed

+24
-19
lines changed

5 files changed

+24
-19
lines changed

src/agent/state/legacy-state.ts

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -438,22 +438,19 @@ class StateResolver {
438438

439439
const fromScopes = scopes.map((scope: v8.ScopeMirror) => {
440440
const obj = scope.details().object();
441-
return Object.keys(obj).reduce(
442-
(acc, name) => {
443-
const value = obj[name];
444-
const trg = makeMirror(value);
445-
if (!usedNames[name]) {
446-
// It's a valid variable that belongs in the locals list
447-
// and wasn't discovered at a lower-scope
448-
usedNames[name] = true;
449-
// TODO: Determine how to not have an explicit down cast to
450-
// ValueMirror
451-
acc.push(self.resolveVariable_(name, trg as v8.ValueMirror, false));
452-
}
453-
return acc;
454-
},
455-
[] as stackdriver.Variable[]
456-
);
441+
return Object.keys(obj).reduce((acc, name) => {
442+
const value = obj[name];
443+
const trg = makeMirror(value);
444+
if (!usedNames[name]) {
445+
// It's a valid variable that belongs in the locals list
446+
// and wasn't discovered at a lower-scope
447+
usedNames[name] = true;
448+
// TODO: Determine how to not have an explicit down cast to
449+
// ValueMirror
450+
acc.push(self.resolveVariable_(name, trg as v8.ValueMirror, false));
451+
}
452+
return acc;
453+
}, [] as stackdriver.Variable[]);
457454
});
458455

459456
function resolveFromReceiver(): stackdriver.Variable[] {

synth.metadata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updateTime": "2019-10-30T22:13:36.218749Z",
2+
"updateTime": "2019-11-15T06:08:56.296900Z",
33
"sources": [
44
{
55
"template": {

synth.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import synthtool as s
1616
import synthtool.gcp as gcp
1717
import logging
18+
import subprocess
1819

1920
logging.basicConfig(level=logging.DEBUG)
2021
common_templates = gcp.CommonTemplates()
@@ -24,3 +25,6 @@
2425
s.copy(templates, excludes=[
2526
'.kokoro/test.bat'
2627
])
28+
29+
subprocess.run(['npm', 'install'])
30+
subprocess.run(['npm', 'run', 'fix'])

test/test-debuglet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ function debugletConfig(conf?: {}): ResolvedDebugAgentConfig & {
15271527
{},
15281528
DEFAULT_CONFIG,
15291529
conf
1530-
) as (ResolvedDebugAgentConfig & {apiUrl: string});
1530+
) as ResolvedDebugAgentConfig & {apiUrl: string};
15311531
c.apiUrl = apiUrl;
15321532
return c;
15331533
}

test/test-sourcemapper.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,9 @@ testTool(
255255
path.join('webpack-ts', 'out.js.map'),
256256
path.join('webpack-ts', 'in.ts_'),
257257
path.join('webpack-ts', 'out.js'),
258-
[[3, 93], [4, 94], [8, 97]]
258+
[
259+
[3, 93],
260+
[4, 94],
261+
[8, 97],
262+
]
259263
);

0 commit comments

Comments
 (0)