Skip to content

Commit bcbd94c

Browse files
authored
chore: add missing use strict directives (#132)
1 parent a616201 commit bcbd94c

21 files changed

+42
-0
lines changed

bench/busboy-form-bench-latin1.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const Busboy = require('busboy');
24
const { createMultipartBufferForEncodingBench } = require("./createMultipartBufferForEncodingBench");
35

bench/busboy-form-bench-utf8.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const Busboy = require('busboy');
24
const { createMultipartBufferForEncodingBench } = require("./createMultipartBufferForEncodingBench");
35

bench/createMultipartBufferForEncodingBench.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bench/dicer/dicer-bench-multipart-parser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const Dicer = require('../../deps/dicer/lib/Dicer')
24

35
function createMultipartBuffer(boundary, size) {

bench/dicer/formidable-bench-multipart-parser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
require('../node_modules/formidable/test/common');
24
var multipartParser = require('../node_modules/formidable/lib/multipart_parser'),
35
MultipartParser = multipartParser.MultipartParser,

bench/dicer/multipartser-bench-multipart-parser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
var multipartser = require('multipartser'),
24
boundary = '-----------------------------168072824752491622650073',
35
parser = multipartser(),

bench/dicer/multiparty-bench-multipart-parser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
var assert = require('node:assert'),
24
Form = require('multiparty').Form,
35
boundary = '-----------------------------168072824752491622650073',

bench/dicer/parted-bench-multipart-parser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
// A special, edited version of the multipart parser from parted is needed here
24
// because otherwise it attempts to do some things above and beyond just parsing
35
// -- like saving to disk and whatnot

bench/dicer/parted-multipart.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
/**
24
* Parted (https://github.com/chjj/parted)
35
* A streaming multipart state parser.

bench/fastify-busboy-form-bench-latin1.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const Busboy = require('../lib/main');
24
const { createMultipartBufferForEncodingBench } = require("./createMultipartBufferForEncodingBench");
35

0 commit comments

Comments
 (0)