Skip to content

Commit

Permalink
Added "use strict" to all files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtuchkin committed May 24, 2015
1 parent 72eb973 commit 5a9206d
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions encodings/dbcs-codec.js
@@ -1,3 +1,4 @@
"use strict"

// Multibyte codec. In this scheme, a character is represented by 1 or more bytes.
// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.
Expand Down
1 change: 1 addition & 0 deletions encodings/dbcs-data.js
@@ -1,3 +1,4 @@
"use strict"

// Description of supported double byte encodings and aliases.
// Tables are not require()-d until they are needed to speed up library load.
Expand Down
1 change: 1 addition & 0 deletions encodings/index.js
@@ -1,3 +1,4 @@
"use strict"

// Update this array if you add/rename/remove files in this directory.
// We support Browserify by skipping automatic module discovery and requiring modules directly.
Expand Down
1 change: 1 addition & 0 deletions encodings/internal.js
@@ -1,3 +1,4 @@
"use strict"

// Export Node.js internal encodings.

Expand Down
1 change: 1 addition & 0 deletions encodings/sbcs-codec.js
@@ -1,3 +1,4 @@
"use strict"

// Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that
// correspond to encoded bytes (if 128 - then lower half is ASCII).
Expand Down
1 change: 1 addition & 0 deletions encodings/sbcs-data-generated.js
@@ -1,3 +1,4 @@
"use strict"

// Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script.
module.exports = {
Expand Down
1 change: 1 addition & 0 deletions encodings/sbcs-data.js
@@ -1,3 +1,4 @@
"use strict"

// Manually added data to be used by sbcs codec in addition to generated one.

Expand Down
2 changes: 1 addition & 1 deletion encodings/utf16.js
@@ -1,4 +1,4 @@

"use strict"

// == UTF16-BE codec. ==========================================================

Expand Down
1 change: 1 addition & 0 deletions encodings/utf7.js
@@ -1,3 +1,4 @@
"use strict"

// UTF-7 codec, according to https://tools.ietf.org/html/rfc2152
// See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3
Expand Down
2 changes: 1 addition & 1 deletion generation/gen-sbcs.js
Expand Up @@ -79,7 +79,7 @@ encodingFamilies.forEach(function(family){

// Write encodings.
fs.writeFileSync(path.join(__dirname, "..", destFileName),
"\n// Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script.\n"+
"\"use strict\"\n\n// Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script.\n"+
"module.exports = "+JSON.stringify(encodings, undefined, " "));


Expand Down
4 changes: 2 additions & 2 deletions lib/bom-handling.js
@@ -1,4 +1,4 @@

"use strict"

// Wraps decoder object to strip BOM
exports.stripBOM = function(decoder, options) {
Expand Down Expand Up @@ -50,7 +50,7 @@ StripBOMWrapper.prototype.write = function(buf) {
if (typeof this.options.stripBOM === 'function')
this.options.stripBOM();
}

this.pass = true;
return res;
}
Expand Down
1 change: 1 addition & 0 deletions lib/extend-node.js
@@ -1,3 +1,4 @@
"use strict"

// == Extend Node primitives to use iconv-lite =================================

Expand Down
1 change: 1 addition & 0 deletions lib/index.js
@@ -1,3 +1,4 @@
"use strict"

var bomHandling = require('./bom-handling'),
iconv = module.exports;
Expand Down
2 changes: 2 additions & 0 deletions lib/streams.js
@@ -1,3 +1,5 @@
"use strict"

var Transform = require("stream").Transform;


Expand Down

0 comments on commit 5a9206d

Please sign in to comment.