"use strict";

This commit is contained in:
Mihai Bazon
2012-10-02 12:45:31 +03:00
parent 211792757c
commit e1098b04a7
9 changed files with 18 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
#! /usr/bin/env node #! /usr/bin/env node
// -*- js -*- // -*- js -*-
"use strict";
var UglifyJS = require("../tools/node"); var UglifyJS = require("../tools/node");
var sys = require("util"); var sys = require("util");
var optimist = require("optimist"); var optimist = require("optimist");

View File

@@ -41,6 +41,8 @@
***********************************************************************/ ***********************************************************************/
"use strict";
var NODE_HIERARCHY = {}; var NODE_HIERARCHY = {};
function DEFNODE(type, props, methods, base) { function DEFNODE(type, props, methods, base) {

View File

@@ -41,6 +41,8 @@
***********************************************************************/ ***********************************************************************/
"use strict";
function Compressor(options, false_by_default) { function Compressor(options, false_by_default) {
if (!(this instanceof Compressor)) if (!(this instanceof Compressor))
return new Compressor(options, false_by_default); return new Compressor(options, false_by_default);

View File

@@ -41,6 +41,8 @@
***********************************************************************/ ***********************************************************************/
"use strict";
function OutputStream(options) { function OutputStream(options) {
options = defaults(options, { options = defaults(options, {

View File

@@ -42,6 +42,8 @@
***********************************************************************/ ***********************************************************************/
"use strict";
var KEYWORDS = array_to_hash([ var KEYWORDS = array_to_hash([
"break", "break",
"case", "case",

View File

@@ -41,6 +41,8 @@
***********************************************************************/ ***********************************************************************/
"use strict";
function SymbolDef(scope, orig) { function SymbolDef(scope, orig) {
this.name = orig.name; this.name = orig.name;
this.orig = [ orig ]; this.orig = [ orig ];

View File

@@ -41,6 +41,8 @@
***********************************************************************/ ***********************************************************************/
"use strict";
// a small wrapper around fitzgen's source-map library // a small wrapper around fitzgen's source-map library
function SourceMap(options) { function SourceMap(options) {
options = defaults(options, { options = defaults(options, {

View File

@@ -41,6 +41,8 @@
***********************************************************************/ ***********************************************************************/
"use strict";
// Tree transformer helpers. // Tree transformer helpers.
// XXX: eventually I should refactor the compressor to use this infrastructure. // XXX: eventually I should refactor the compressor to use this infrastructure.

View File

@@ -41,6 +41,8 @@
***********************************************************************/ ***********************************************************************/
"use strict";
function curry(f) { function curry(f) {
var args = slice(arguments, 1); var args = slice(arguments, 1);
return function() { return f.apply(this, args.concat(slice(arguments))); }; return function() { return f.apply(this, args.concat(slice(arguments))); };