Skip to content

Commit 72b68c6

Browse files
authored
Merge pull request #153 from bekzod/let-const
`var` => `const`
2 parents c5175b4 + 7359e55 commit 72b68c6

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/fastboot-info.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

3-
var RSVP = require('rsvp');
4-
var FastBootRequest = require('./fastboot-request');
5-
var FastBootResponse = require('./fastboot-response');
3+
const RSVP = require('rsvp');
4+
const FastBootRequest = require('./fastboot-request');
5+
const FastBootResponse = require('./fastboot-response');
66

77
/*
88
* A class that encapsulates information about the

src/fastboot-request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
var cookie = require('cookie');
4-
var FastBootHeaders = require('./fastboot-headers');
3+
const cookie = require('cookie');
4+
const FastBootHeaders = require('./fastboot-headers');
55

66
class FastBootRequest {
77
constructor(request, hostWhitelist) {

src/fastboot-response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var FastBootHeaders = require('./fastboot-headers');
3+
const FastBootHeaders = require('./fastboot-headers');
44

55
class FastbootResponse {
66
constructor(response) {

src/install-source-map-support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var sourceMapSupport = require('source-map-support');
1+
const sourceMapSupport = require('source-map-support');
22

33
function prepareStackTrace(error, stack) {
44
return error + stack.map(function(frame) {

src/sandbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var chalk = require('chalk');
3+
const chalk = require('chalk');
44

55
class Sandbox {
66

src/vm-sandbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
var vm = require('vm');
4-
var Sandbox = require('./sandbox');
3+
const vm = require('vm');
4+
const Sandbox = require('./sandbox');
55

66
class VMSandbox extends Sandbox {
77
constructor(options) {

0 commit comments

Comments
 (0)