diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ast.js | 2 | ||||
-rw-r--r-- | lib/compress.js | 2 | ||||
-rw-r--r-- | lib/output.js | 2 | ||||
-rw-r--r-- | lib/parse.js | 2 | ||||
-rw-r--r-- | lib/scope.js | 2 | ||||
-rw-r--r-- | lib/sourcemap.js | 2 | ||||
-rw-r--r-- | lib/transform.js | 2 | ||||
-rw-r--r-- | lib/utils.js | 2 |
8 files changed, 16 insertions, 0 deletions
@@ -41,6 +41,8 @@ ***********************************************************************/ +"use strict"; + var NODE_HIERARCHY = {}; function DEFNODE(type, props, methods, base) { diff --git a/lib/compress.js b/lib/compress.js index a6edf413..ecd9c955 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -41,6 +41,8 @@ ***********************************************************************/ +"use strict"; + function Compressor(options, false_by_default) { if (!(this instanceof Compressor)) return new Compressor(options, false_by_default); diff --git a/lib/output.js b/lib/output.js index 615f7110..e5531f55 100644 --- a/lib/output.js +++ b/lib/output.js @@ -41,6 +41,8 @@ ***********************************************************************/ +"use strict"; + function OutputStream(options) { options = defaults(options, { diff --git a/lib/parse.js b/lib/parse.js index b054c727..115a42ce 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -42,6 +42,8 @@ ***********************************************************************/ +"use strict"; + var KEYWORDS = array_to_hash([ "break", "case", diff --git a/lib/scope.js b/lib/scope.js index 71ed0667..4166ac25 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -41,6 +41,8 @@ ***********************************************************************/ +"use strict"; + function SymbolDef(scope, orig) { this.name = orig.name; this.orig = [ orig ]; diff --git a/lib/sourcemap.js b/lib/sourcemap.js index da4ab4fe..a9dc6a81 100644 --- a/lib/sourcemap.js +++ b/lib/sourcemap.js @@ -41,6 +41,8 @@ ***********************************************************************/ +"use strict"; + // a small wrapper around fitzgen's source-map library function SourceMap(options) { options = defaults(options, { diff --git a/lib/transform.js b/lib/transform.js index 0d15e63f..d85262be 100644 --- a/lib/transform.js +++ b/lib/transform.js @@ -41,6 +41,8 @@ ***********************************************************************/ +"use strict"; + // Tree transformer helpers. // XXX: eventually I should refactor the compressor to use this infrastructure. diff --git a/lib/utils.js b/lib/utils.js index 3b8aa00c..83e514a4 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -41,6 +41,8 @@ ***********************************************************************/ +"use strict"; + function curry(f) { var args = slice(arguments, 1); return function() { return f.apply(this, args.concat(slice(arguments))); }; |