Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 62b9b55

Browse filesBrowse files
committed
use sting templates
1 parent 90273f9 commit 62b9b55
Copy full SHA for 62b9b55

1 file changed

+6-2Lines changed: 6 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/harness/instrumenter.ts‎

Copy file name to clipboardExpand all lines: src/harness/instrumenter.ts
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ var fs: any = require('fs');
33
var path: any = require('path');
44

55
function instrumentForRecording(fn: string, tscPath: string) {
6-
instrument(tscPath, 'ts.sys = Playback.wrapSystem(ts.sys); ts.sys.startRecord("' + fn + '");', 'ts.sys.endRecord();');
6+
instrument(tscPath, `
7+
ts.sys = Playback.wrapSystem(ts.sys);
8+
ts.sys.startRecord("${ fn }");`, `ts.sys.endRecord();`);
79
}
810

911
function instrumentForReplay(logFilename: string, tscPath: string) {
10-
instrument(tscPath, 'ts.sys = Playback.wrapSystem(ts.sys); ts.sys.startReplay("' + logFilename + '");');
12+
instrument(tscPath, `
13+
ts.sys = Playback.wrapSystem(ts.sys);
14+
ts.sys.startReplay("${ logFilename }");`);
1115
}
1216

1317
function instrument(tscPath: string, prepareCode: string, cleanupCode: string = '') {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.