Comparing version 1.10.10 to 1.10.11
@@ -103,4 +103,4 @@ var sourceMap = require("source-map"); | ||
_.each(_filenames, function (filename, i) { | ||
results.push(util.compile(filename, { _noStrict: +i !== 0 })); | ||
_.each(_filenames, function (filename) { | ||
results.push(util.compile(filename)); | ||
}); | ||
@@ -107,0 +107,0 @@ |
@@ -23,3 +23,40 @@ require("./polyfill"); | ||
var blacklist = []; | ||
var blacklistTest = function (transformer, code) { | ||
try { | ||
if (_.isFunction(code)) { | ||
code(); | ||
} else { | ||
new Function(code); | ||
} | ||
blacklist.push(transformer); | ||
} catch (err) { | ||
if (err.name !== "SyntaxError") throw err; | ||
} | ||
}; | ||
blacklistTest("arrayComprehension", "var foo = [for (foo of bar) foo * foo];"); | ||
blacklistTest("arrowFunctions", "var foo = x => x * x;"); | ||
blacklistTest("classes", "class Foo {}"); | ||
blacklistTest("computedPropertyNames", "var foo = { [foo]: bar };"); | ||
//blacklistTest("constants", "const foo = 0;"); | ||
blacklistTest("defaultParamaters", "var foo = function (bar = 0) {};"); | ||
blacklistTest("destructuring", "var { x, y } = { x: 0, y: 0 };"); | ||
blacklistTest("forOf", "for (var foo of bar) {}"); | ||
blacklistTest("generators", "function* foo() {}"); | ||
blacklistTest("letScoping", "let foo = 0;"); | ||
blacklistTest("modules", 'import foo from "from";'); | ||
blacklistTest("propertyMethodAssignment", "{ get foo() {} }"); | ||
blacklistTest("propertyNameShorthand", "var foo = { x, y };"); | ||
blacklistTest("restParameters", "function foo(...bar) {}"); | ||
blacklistTest("spread", "foo(...bar);"); | ||
blacklistTest("templateLiterals", "`foo`"); | ||
blacklistTest("unicodeRegex", function () { new RegExp("foo", "u"); }); | ||
// | ||
var ignoreRegex = /node_modules/; | ||
var onlyRegex; | ||
var whitelist = []; | ||
var exts = {}; | ||
@@ -30,3 +67,3 @@ var maps = {}; | ||
var loader = function (m, filename) { | ||
if (ignoreRegex && ignoreRegex.test(filename)) { | ||
if ((ignoreRegex && ignoreRegex.test(filename)) || (onlyRegex && !onlyRegex.test(filename))) { | ||
return old.apply(this, arguments); | ||
@@ -36,2 +73,4 @@ } | ||
var result = to5.transformFileSync(filename, { | ||
whitelist: whitelist, | ||
blacklist: blacklist, | ||
sourceMap: true | ||
@@ -61,10 +100,14 @@ }); | ||
module.exports = function (opts) { | ||
// normalise options | ||
opts = opts || {}; | ||
if (_.isRegExp(opts)) opts = { ignoreRegex: opts }; | ||
if (_.isRegExp(opts)) opts = { ignore: opts }; | ||
opts.ignore = opts.ignore || opts.ignoreRegex; | ||
if (opts.ignoreRegex != null) { | ||
ignoreRegex = opts.ignoreRegex; | ||
} | ||
if (opts.only != null) onlyRegex = opts.only; | ||
if (opts.ignore != null) ignoreRegex = opts.ignore; | ||
if (opts.extensions) hookExtensions(opts.extensions); | ||
if (opts.blacklist) blacklist = opts.blacklist; | ||
if (opts.whitelist) whitelist = opts.whitelist; | ||
}; |
@@ -106,5 +106,6 @@ module.exports = transform; | ||
_declarations: require("./transformers/_declarations"), | ||
_moduleFormatter: require("./transformers/_module-formatter"), | ||
useStrict: require("./transformers/use-strict") | ||
useStrict: require("./transformers/use-strict"), | ||
_moduleFormatter: require("./transformers/_module-formatter") | ||
}; | ||
@@ -111,0 +112,0 @@ |
@@ -59,3 +59,3 @@ var traverse = require("../traverse"); | ||
buildClassBody(body, className, superName, node); | ||
buildClassBody(file, body, className, superName, node); | ||
@@ -67,3 +67,3 @@ body.push(returnStatement); | ||
var buildClassBody = function (body, className, superName, node) { | ||
var buildClassBody = function (file, body, className, superName, node) { | ||
var instanceMutatorMap = {}; | ||
@@ -110,2 +110,5 @@ var staticMutatorMap = {}; | ||
var instanceProps; | ||
var staticProps; | ||
if (!_.isEmpty(instanceMutatorMap)) { | ||
@@ -116,8 +119,17 @@ var protoId = util.template("prototype-identifier", { | ||
body.push(util.buildDefineProperties(instanceMutatorMap, protoId)); | ||
instanceProps = util.buildDefineProperties(instanceMutatorMap, protoId); | ||
} | ||
if (!_.isEmpty(staticMutatorMap)) { | ||
body.push(util.buildDefineProperties(staticMutatorMap, className)); | ||
staticProps = util.buildDefineProperties(staticMutatorMap, className); | ||
} | ||
if (instanceProps || staticProps) { | ||
instanceProps = instanceProps || b.literal(null); | ||
staticProps = staticProps || b.literal(null); | ||
body.push(b.expressionStatement( | ||
b.callExpression(file.addDeclaration("class-props"), [className, staticProps, instanceProps]) | ||
)); | ||
} | ||
}; | ||
@@ -124,0 +136,0 @@ |
@@ -27,4 +27,7 @@ var util = require("../util"); | ||
OBJECT: node, | ||
CONTENT: util.buildDefineProperties(mutatorMap, objId).expression | ||
CONTENT: util.template("object-define-properties", { | ||
OBJECT: objId, | ||
PROPS: util.buildDefineProperties(mutatorMap) | ||
}) | ||
}); | ||
}; |
var b = require("acorn-ast-types").builders; | ||
module.exports = function (ast, file) { | ||
module.exports = function (ast) { | ||
var body = ast.program.body; | ||
@@ -10,7 +10,4 @@ var first = body[0]; | ||
if (noStrict) { | ||
if (file.opts._noStrict) return; | ||
body.unshift(b.expressionStatement(b.literal("use strict"))); | ||
} else { | ||
if (file.opts._noStrict) body.shift(); | ||
} | ||
}; |
@@ -150,3 +150,3 @@ var traverse = require("./traverse"); | ||
exports.buildDefineProperties = function (mutatorMap, keyNode) { | ||
exports.buildDefineProperties = function (mutatorMap) { | ||
var objExpr = b.objectExpression([]); | ||
@@ -168,6 +168,3 @@ | ||
return exports.template("object-define-properties", { | ||
OBJECT: keyNode, | ||
PROPS: objExpr | ||
}, true); | ||
return objExpr; | ||
}; | ||
@@ -174,0 +171,0 @@ |
{ | ||
"name": "6to5", | ||
"description": "Turn ES6 code into readable vanilla ES5 with source maps", | ||
"version": "1.10.10", | ||
"version": "1.10.11", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
@@ -62,4 +62,5 @@ "homepage": "https://github.com/sebmck/6to5", | ||
"rimraf": "2.2.8", | ||
"jshint": "2.5.6" | ||
"jshint": "2.5.6", | ||
"chai": "^1.9.2" | ||
} | ||
} |
@@ -1,1 +0,1 @@ | ||
{"arguments-slice-assign-arg":{"type":"Program","start":0,"end":57,"body":[{"type":"VariableDeclaration","start":0,"end":57,"declarations":[{"type":"VariableDeclarator","start":4,"end":56,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"CallExpression","start":20,"end":56,"callee":{"type":"MemberExpression","start":20,"end":34,"object":{"type":"Identifier","start":20,"end":29,"name":"SLICE_KEY"},"property":{"type":"Identifier","start":30,"end":34,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":35,"end":44,"name":"arguments"},{"type":"Identifier","start":46,"end":55,"name":"SLICE_ARG"}]}}],"kind":"var"}]},"arguments-slice-assign":{"type":"Program","start":0,"end":46,"body":[{"type":"VariableDeclaration","start":0,"end":46,"declarations":[{"type":"VariableDeclarator","start":4,"end":45,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"CallExpression","start":20,"end":45,"callee":{"type":"MemberExpression","start":20,"end":34,"object":{"type":"Identifier","start":20,"end":29,"name":"SLICE_KEY"},"property":{"type":"Identifier","start":30,"end":34,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":35,"end":44,"name":"arguments"}]}}],"kind":"var"}]},"arguments-slice":{"type":"Program","start":0,"end":26,"body":[{"type":"ExpressionStatement","start":0,"end":26,"expression":{"type":"CallExpression","start":0,"end":25,"callee":{"type":"MemberExpression","start":0,"end":14,"object":{"type":"Identifier","start":0,"end":9,"name":"SLICE_KEY"},"property":{"type":"Identifier","start":10,"end":14,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":15,"end":24,"name":"arguments"}]}}]},"array-comprehension-container":{"type":"Program","start":0,"end":51,"body":[{"type":"ExpressionStatement","start":0,"end":51,"expression":{"type":"CallExpression","start":0,"end":50,"callee":{"type":"FunctionExpression","start":1,"end":47,"id":null,"params":[],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":13,"end":47,"body":[{"type":"VariableDeclaration","start":17,"end":30,"declarations":[{"type":"VariableDeclarator","start":21,"end":29,"id":{"type":"Identifier","start":21,"end":24,"name":"KEY"},"init":{"type":"ArrayExpression","start":27,"end":29,"elements":[]}}],"kind":"var"},{"type":"ReturnStatement","start":34,"end":45,"argument":{"type":"Identifier","start":41,"end":44,"name":"KEY"}}]},"expression":false},"arguments":[]}}]},"array-comprehension-filter":{"type":"Program","start":0,"end":94,"body":[{"type":"ExpressionStatement","start":0,"end":94,"expression":{"type":"CallExpression","start":0,"end":93,"callee":{"type":"MemberExpression","start":0,"end":53,"object":{"type":"CallExpression","start":0,"end":49,"callee":{"type":"MemberExpression","start":0,"end":12,"object":{"type":"Identifier","start":0,"end":5,"name":"ARRAY"},"property":{"type":"Identifier","start":6,"end":12,"name":"filter"},"computed":false},"arguments":[{"type":"FunctionExpression","start":13,"end":48,"id":null,"params":[{"type":"Identifier","start":23,"end":26,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":28,"end":48,"body":[{"type":"ReturnStatement","start":32,"end":46,"argument":{"type":"Identifier","start":39,"end":45,"name":"FILTER"}}]},"expression":false}]},"property":{"type":"Identifier","start":50,"end":53,"name":"map"},"computed":false},"arguments":[{"type":"FunctionExpression","start":54,"end":92,"id":null,"params":[{"type":"Identifier","start":64,"end":67,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":69,"end":92,"body":[{"type":"ReturnStatement","start":73,"end":90,"argument":{"type":"Identifier","start":80,"end":89,"name":"STATEMENT"}}]},"expression":false}]}}]},"array-comprehension-for-each":{"type":"Program","start":0,"end":35,"body":[{"type":"ExpressionStatement","start":0,"end":35,"expression":{"type":"CallExpression","start":0,"end":34,"callee":{"type":"MemberExpression","start":0,"end":13,"object":{"type":"Identifier","start":0,"end":5,"name":"ARRAY"},"property":{"type":"Identifier","start":6,"end":13,"name":"forEach"},"computed":false},"arguments":[{"type":"FunctionExpression","start":14,"end":33,"id":null,"params":[{"type":"Identifier","start":24,"end":27,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":29,"end":33,"body":[]},"expression":false}]}}]},"array-comprehension-map":{"type":"Program","start":0,"end":50,"body":[{"type":"ExpressionStatement","start":0,"end":50,"expression":{"type":"CallExpression","start":0,"end":49,"callee":{"type":"MemberExpression","start":0,"end":9,"object":{"type":"Identifier","start":0,"end":5,"name":"ARRAY"},"property":{"type":"Identifier","start":6,"end":9,"name":"map"},"computed":false},"arguments":[{"type":"FunctionExpression","start":10,"end":48,"id":null,"params":[{"type":"Identifier","start":20,"end":23,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":25,"end":48,"body":[{"type":"ReturnStatement","start":29,"end":46,"argument":{"type":"Identifier","start":36,"end":45,"name":"STATEMENT"}}]},"expression":false}]}}]},"array-push":{"type":"Program","start":0,"end":20,"body":[{"type":"ExpressionStatement","start":0,"end":20,"expression":{"type":"CallExpression","start":0,"end":19,"callee":{"type":"MemberExpression","start":0,"end":8,"object":{"type":"Identifier","start":0,"end":3,"name":"KEY"},"property":{"type":"Identifier","start":4,"end":8,"name":"push"},"computed":false},"arguments":[{"type":"Identifier","start":9,"end":18,"name":"STATEMENT"}]}}]},"call":{"type":"Program","start":0,"end":21,"body":[{"type":"ExpressionStatement","start":0,"end":21,"expression":{"type":"CallExpression","start":0,"end":20,"callee":{"type":"MemberExpression","start":0,"end":11,"object":{"type":"Identifier","start":0,"end":6,"name":"OBJECT"},"property":{"type":"Identifier","start":7,"end":11,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":12,"end":19,"name":"CONTEXT"}]}}]},"class-super-constructor-call":{"type":"Program","start":0,"end":34,"body":[{"type":"ExpressionStatement","start":0,"end":34,"expression":{"type":"CallExpression","start":0,"end":33,"callee":{"type":"MemberExpression","start":0,"end":16,"object":{"type":"Identifier","start":0,"end":10,"name":"SUPER_NAME"},"property":{"type":"Identifier","start":11,"end":16,"name":"apply"},"computed":false},"arguments":[{"type":"ThisExpression","start":17,"end":21},{"type":"Identifier","start":23,"end":32,"name":"arguments"}]}}]},"class":{"type":"Program","start":0,"end":80,"body":[{"type":"ExpressionStatement","start":0,"end":80,"expression":{"type":"CallExpression","start":0,"end":80,"callee":{"type":"FunctionExpression","start":1,"end":77,"id":null,"params":[],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":13,"end":77,"body":[{"type":"VariableDeclaration","start":17,"end":53,"declarations":[{"type":"VariableDeclarator","start":21,"end":52,"id":{"type":"Identifier","start":21,"end":31,"name":"CLASS_NAME"},"init":{"type":"FunctionExpression","start":34,"end":52,"id":null,"params":[],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":46,"end":52,"body":[]},"expression":false}}],"kind":"var"},{"type":"ReturnStatement","start":57,"end":75,"argument":{"type":"Identifier","start":64,"end":74,"name":"CLASS_NAME"}}]},"expression":false},"arguments":[]}}]},"exports-assign-key":{"type":"Program","start":0,"end":35,"body":[{"type":"ExpressionStatement","start":0,"end":35,"expression":{"type":"AssignmentExpression","start":0,"end":34,"operator":"=","left":{"type":"MemberExpression","start":0,"end":21,"object":{"type":"Identifier","start":0,"end":7,"name":"exports"},"property":{"type":"Identifier","start":8,"end":21,"name":"VARIABLE_NAME"},"computed":false},"right":{"type":"MemberExpression","start":24,"end":34,"object":{"type":"Identifier","start":24,"end":30,"name":"OBJECT"},"property":{"type":"Identifier","start":31,"end":34,"name":"KEY"},"computed":false}}}]},"exports-assign":{"type":"Program","start":0,"end":20,"body":[{"type":"ExpressionStatement","start":0,"end":20,"expression":{"type":"AssignmentExpression","start":0,"end":19,"operator":"=","left":{"type":"MemberExpression","start":0,"end":11,"object":{"type":"Identifier","start":0,"end":7,"name":"exports"},"property":{"type":"Identifier","start":8,"end":11,"name":"KEY"},"computed":false},"right":{"type":"Identifier","start":14,"end":19,"name":"VALUE"}}}]},"exports-default":{"type":"Program","start":0,"end":24,"body":[{"type":"ExpressionStatement","start":0,"end":24,"expression":{"type":"AssignmentExpression","start":0,"end":23,"operator":"=","left":{"type":"MemberExpression","start":0,"end":15,"object":{"type":"Identifier","start":0,"end":7,"name":"exports"},"property":{"type":"Identifier","start":8,"end":15,"name":"default"},"computed":false},"right":{"type":"Identifier","start":18,"end":23,"name":"VALUE"}}}]},"exports-wildcard":{"type":"Program","start":0,"end":81,"body":[{"type":"ExpressionStatement","start":0,"end":81,"expression":{"type":"CallExpression","start":0,"end":80,"callee":{"type":"FunctionExpression","start":1,"end":71,"id":null,"params":[{"type":"Identifier","start":11,"end":14,"name":"obj"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":16,"end":71,"body":[{"type":"ForInStatement","start":20,"end":69,"left":{"type":"VariableDeclaration","start":25,"end":30,"declarations":[{"type":"VariableDeclarator","start":29,"end":30,"id":{"type":"Identifier","start":29,"end":30,"name":"i"},"init":null}],"kind":"var"},"right":{"type":"Identifier","start":34,"end":37,"name":"obj"},"body":{"type":"BlockStatement","start":39,"end":69,"body":[{"type":"ExpressionStatement","start":45,"end":65,"expression":{"type":"AssignmentExpression","start":45,"end":64,"operator":"=","left":{"type":"MemberExpression","start":45,"end":55,"object":{"type":"Identifier","start":45,"end":52,"name":"exports"},"property":{"type":"Identifier","start":53,"end":54,"name":"i"},"computed":true},"right":{"type":"MemberExpression","start":58,"end":64,"object":{"type":"Identifier","start":58,"end":61,"name":"obj"},"property":{"type":"Identifier","start":62,"end":63,"name":"i"},"computed":true}}}]}}]},"expression":false},"arguments":[{"type":"Identifier","start":73,"end":79,"name":"OBJECT"}]}}]},"extends":{"type":"Program","start":0,"end":235,"body":[{"type":"ExpressionStatement","start":0,"end":235,"expression":{"type":"FunctionExpression","start":1,"end":234,"id":null,"params":[{"type":"Identifier","start":11,"end":16,"name":"child"},{"type":"Identifier","start":18,"end":24,"name":"parent"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":26,"end":234,"body":[{"type":"ExpressionStatement","start":30,"end":204,"expression":{"type":"AssignmentExpression","start":30,"end":203,"operator":"=","left":{"type":"MemberExpression","start":30,"end":45,"object":{"type":"Identifier","start":30,"end":35,"name":"child"},"property":{"type":"Identifier","start":36,"end":45,"name":"prototype"},"computed":false},"right":{"type":"CallExpression","start":48,"end":203,"callee":{"type":"MemberExpression","start":48,"end":61,"object":{"type":"Identifier","start":48,"end":54,"name":"Object"},"property":{"type":"Identifier","start":55,"end":61,"name":"create"},"computed":false},"arguments":[{"type":"MemberExpression","start":62,"end":78,"object":{"type":"Identifier","start":62,"end":68,"name":"parent"},"property":{"type":"Identifier","start":69,"end":78,"name":"prototype"},"computed":false},{"type":"ObjectExpression","start":80,"end":202,"properties":[{"type":"Property","start":86,"end":198,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":86,"end":97,"name":"constructor"},"value":{"type":"ObjectExpression","start":99,"end":198,"properties":[{"type":"Property","start":107,"end":119,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":107,"end":112,"name":"value"},"value":{"type":"Identifier","start":114,"end":119,"name":"child"},"kind":"init"},{"type":"Property","start":127,"end":144,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":127,"end":137,"name":"enumerable"},"value":{"type":"Literal","start":139,"end":144,"value":false,"raw":"false"},"kind":"init"},{"type":"Property","start":152,"end":166,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":152,"end":160,"name":"writable"},"value":{"type":"Literal","start":162,"end":166,"value":true,"raw":"true"},"kind":"init"},{"type":"Property","start":174,"end":192,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":174,"end":186,"name":"configurable"},"value":{"type":"Literal","start":188,"end":192,"value":true,"raw":"true"},"kind":"init"}]},"kind":"init"}]}]}}},{"type":"ExpressionStatement","start":207,"end":232,"expression":{"type":"AssignmentExpression","start":207,"end":231,"operator":"=","left":{"type":"MemberExpression","start":207,"end":222,"object":{"type":"Identifier","start":207,"end":212,"name":"child"},"property":{"type":"Identifier","start":213,"end":222,"name":"__proto__"},"computed":false},"right":{"type":"Identifier","start":225,"end":231,"name":"parent"}}}]},"expression":false}}]},"for-of":{"type":"Program","start":0,"end":107,"body":[{"type":"ForStatement","start":0,"end":107,"init":{"type":"VariableDeclaration","start":5,"end":59,"declarations":[{"type":"VariableDeclarator","start":9,"end":49,"id":{"type":"Identifier","start":9,"end":21,"name":"ITERATOR_KEY"},"init":{"type":"CallExpression","start":24,"end":49,"callee":{"type":"MemberExpression","start":24,"end":47,"object":{"type":"Identifier","start":24,"end":30,"name":"OBJECT"},"property":{"type":"MemberExpression","start":31,"end":46,"object":{"type":"Identifier","start":31,"end":37,"name":"Symbol"},"property":{"type":"Identifier","start":38,"end":46,"name":"iterator"},"computed":false},"computed":true},"arguments":[]}},{"type":"VariableDeclarator","start":51,"end":59,"id":{"type":"Identifier","start":51,"end":59,"name":"STEP_KEY"},"init":null}],"kind":"var"},"test":{"type":"UnaryExpression","start":61,"end":99,"operator":"!","prefix":true,"argument":{"type":"MemberExpression","start":62,"end":99,"object":{"type":"AssignmentExpression","start":63,"end":93,"operator":"=","left":{"type":"Identifier","start":63,"end":71,"name":"STEP_KEY"},"right":{"type":"CallExpression","start":74,"end":93,"callee":{"type":"MemberExpression","start":74,"end":91,"object":{"type":"Identifier","start":74,"end":86,"name":"ITERATOR_KEY"},"property":{"type":"Identifier","start":87,"end":91,"name":"next"},"computed":false},"arguments":[]}},"property":{"type":"Identifier","start":95,"end":99,"name":"done"},"computed":false}},"update":null,"body":{"type":"BlockStatement","start":103,"end":107,"body":[]}}]},"function-return-obj":{"type":"Program","start":0,"end":42,"body":[{"type":"ExpressionStatement","start":0,"end":42,"expression":{"type":"CallExpression","start":0,"end":42,"callee":{"type":"FunctionExpression","start":1,"end":33,"id":null,"params":[{"type":"Identifier","start":11,"end":14,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":16,"end":33,"body":[{"type":"ReturnStatement","start":20,"end":31,"argument":{"type":"Identifier","start":27,"end":30,"name":"KEY"}}]},"expression":false},"arguments":[{"type":"Identifier","start":35,"end":41,"name":"OBJECT"}]}}]},"if-undefined-set-to":{"type":"Program","start":0,"end":47,"body":[{"type":"IfStatement","start":0,"end":47,"test":{"type":"BinaryExpression","start":4,"end":26,"left":{"type":"Identifier","start":4,"end":12,"name":"VARIABLE"},"operator":"===","right":{"type":"Identifier","start":17,"end":26,"name":"undefined"}},"consequent":{"type":"ExpressionStatement","start":28,"end":47,"expression":{"type":"AssignmentExpression","start":28,"end":46,"operator":"=","left":{"type":"Identifier","start":28,"end":36,"name":"VARIABLE"},"right":{"type":"Identifier","start":39,"end":46,"name":"DEFAULT"}}},"alternate":null}]},"object-define-properties-closure":{"type":"Program","start":0,"end":54,"body":[{"type":"ExpressionStatement","start":0,"end":54,"expression":{"type":"CallExpression","start":0,"end":53,"callee":{"type":"FunctionExpression","start":1,"end":44,"id":null,"params":[{"type":"Identifier","start":11,"end":14,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":16,"end":44,"body":[{"type":"ExpressionStatement","start":20,"end":28,"expression":{"type":"Identifier","start":20,"end":27,"name":"CONTENT"}},{"type":"ReturnStatement","start":31,"end":42,"argument":{"type":"Identifier","start":38,"end":41,"name":"KEY"}}]},"expression":false},"arguments":[{"type":"Identifier","start":46,"end":52,"name":"OBJECT"}]}}]},"object-define-properties":{"type":"Program","start":0,"end":39,"body":[{"type":"ExpressionStatement","start":0,"end":39,"expression":{"type":"CallExpression","start":0,"end":38,"callee":{"type":"MemberExpression","start":0,"end":23,"object":{"type":"Identifier","start":0,"end":6,"name":"Object"},"property":{"type":"Identifier","start":7,"end":23,"name":"defineProperties"},"computed":false},"arguments":[{"type":"Identifier","start":24,"end":30,"name":"OBJECT"},{"type":"Identifier","start":32,"end":37,"name":"PROPS"}]}}]},"prototype-identifier":{"type":"Program","start":0,"end":20,"body":[{"type":"ExpressionStatement","start":0,"end":20,"expression":{"type":"MemberExpression","start":0,"end":20,"object":{"type":"Identifier","start":0,"end":10,"name":"CLASS_NAME"},"property":{"type":"Identifier","start":11,"end":20,"name":"prototype"},"computed":false}}]},"require-assign-key":{"type":"Program","start":0,"end":45,"body":[{"type":"VariableDeclaration","start":0,"end":45,"declarations":[{"type":"VariableDeclarator","start":4,"end":44,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"MemberExpression","start":20,"end":44,"object":{"type":"CallExpression","start":20,"end":40,"callee":{"type":"Identifier","start":20,"end":27,"name":"require"},"arguments":[{"type":"Identifier","start":28,"end":39,"name":"MODULE_NAME"}]},"property":{"type":"Identifier","start":41,"end":44,"name":"KEY"},"computed":false}}],"kind":"var"}]},"require-assign":{"type":"Program","start":0,"end":41,"body":[{"type":"VariableDeclaration","start":0,"end":41,"declarations":[{"type":"VariableDeclarator","start":4,"end":40,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"CallExpression","start":20,"end":40,"callee":{"type":"Identifier","start":20,"end":27,"name":"require"},"arguments":[{"type":"Identifier","start":28,"end":39,"name":"MODULE_NAME"}]}}],"kind":"var"}]},"require":{"type":"Program","start":0,"end":21,"body":[{"type":"ExpressionStatement","start":0,"end":21,"expression":{"type":"CallExpression","start":0,"end":20,"callee":{"type":"Identifier","start":0,"end":7,"name":"require"},"arguments":[{"type":"Identifier","start":8,"end":19,"name":"MODULE_NAME"}]}}]},"slice":{"type":"Program","start":0,"end":22,"body":[{"type":"ExpressionStatement","start":0,"end":22,"expression":{"type":"MemberExpression","start":0,"end":21,"object":{"type":"MemberExpression","start":0,"end":15,"object":{"type":"Identifier","start":0,"end":5,"name":"Array"},"property":{"type":"Identifier","start":6,"end":15,"name":"prototype"},"computed":false},"property":{"type":"Identifier","start":16,"end":21,"name":"slice"},"computed":false}}]},"umd-runner-body":{"type":"Program","start":0,"end":204,"body":[{"type":"ExpressionStatement","start":0,"end":204,"expression":{"type":"FunctionExpression","start":1,"end":202,"id":null,"params":[{"type":"Identifier","start":11,"end":18,"name":"factory"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":20,"end":202,"body":[{"type":"IfStatement","start":24,"end":200,"test":{"type":"LogicalExpression","start":28,"end":70,"left":{"type":"BinaryExpression","start":28,"end":56,"left":{"type":"UnaryExpression","start":28,"end":41,"operator":"typeof","prefix":true,"argument":{"type":"Identifier","start":35,"end":41,"name":"define"}},"operator":"===","right":{"type":"Literal","start":46,"end":56,"value":"function","raw":"\"function\""}},"operator":"&&","right":{"type":"MemberExpression","start":60,"end":70,"object":{"type":"Identifier","start":60,"end":66,"name":"define"},"property":{"type":"Identifier","start":67,"end":70,"name":"amd"},"computed":false}},"consequent":{"type":"BlockStatement","start":72,"end":113,"body":[{"type":"ExpressionStatement","start":78,"end":109,"expression":{"type":"CallExpression","start":78,"end":108,"callee":{"type":"Identifier","start":78,"end":84,"name":"define"},"arguments":[{"type":"Identifier","start":85,"end":98,"name":"AMD_ARGUMENTS"},{"type":"Identifier","start":100,"end":107,"name":"factory"}]}}]},"alternate":{"type":"IfStatement","start":119,"end":200,"test":{"type":"BinaryExpression","start":123,"end":153,"left":{"type":"UnaryExpression","start":123,"end":137,"operator":"typeof","prefix":true,"argument":{"type":"Identifier","start":130,"end":137,"name":"exports"}},"operator":"!==","right":{"type":"Literal","start":142,"end":153,"value":"undefined","raw":"\"undefined\""}},"consequent":{"type":"BlockStatement","start":155,"end":200,"body":[{"type":"ExpressionStatement","start":161,"end":196,"expression":{"type":"CallExpression","start":161,"end":195,"callee":{"type":"Identifier","start":161,"end":168,"name":"factory"},"arguments":[{"type":"Identifier","start":169,"end":176,"name":"exports"},{"type":"Identifier","start":178,"end":194,"name":"COMMON_ARGUMENTS"}]}}]},"alternate":null}}]},"expression":false}}]},"umd":{"type":"Program","start":0,"end":0,"body":[]}} | ||
{"arguments-slice-assign-arg":{"type":"Program","start":0,"end":57,"body":[{"type":"VariableDeclaration","start":0,"end":57,"declarations":[{"type":"VariableDeclarator","start":4,"end":56,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"CallExpression","start":20,"end":56,"callee":{"type":"MemberExpression","start":20,"end":34,"object":{"type":"Identifier","start":20,"end":29,"name":"SLICE_KEY"},"property":{"type":"Identifier","start":30,"end":34,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":35,"end":44,"name":"arguments"},{"type":"Identifier","start":46,"end":55,"name":"SLICE_ARG"}]}}],"kind":"var"}]},"arguments-slice-assign":{"type":"Program","start":0,"end":46,"body":[{"type":"VariableDeclaration","start":0,"end":46,"declarations":[{"type":"VariableDeclarator","start":4,"end":45,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"CallExpression","start":20,"end":45,"callee":{"type":"MemberExpression","start":20,"end":34,"object":{"type":"Identifier","start":20,"end":29,"name":"SLICE_KEY"},"property":{"type":"Identifier","start":30,"end":34,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":35,"end":44,"name":"arguments"}]}}],"kind":"var"}]},"arguments-slice":{"type":"Program","start":0,"end":26,"body":[{"type":"ExpressionStatement","start":0,"end":26,"expression":{"type":"CallExpression","start":0,"end":25,"callee":{"type":"MemberExpression","start":0,"end":14,"object":{"type":"Identifier","start":0,"end":9,"name":"SLICE_KEY"},"property":{"type":"Identifier","start":10,"end":14,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":15,"end":24,"name":"arguments"}]}}]},"array-comprehension-container":{"type":"Program","start":0,"end":51,"body":[{"type":"ExpressionStatement","start":0,"end":51,"expression":{"type":"CallExpression","start":0,"end":50,"callee":{"type":"FunctionExpression","start":1,"end":47,"id":null,"params":[],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":13,"end":47,"body":[{"type":"VariableDeclaration","start":17,"end":30,"declarations":[{"type":"VariableDeclarator","start":21,"end":29,"id":{"type":"Identifier","start":21,"end":24,"name":"KEY"},"init":{"type":"ArrayExpression","start":27,"end":29,"elements":[]}}],"kind":"var"},{"type":"ReturnStatement","start":34,"end":45,"argument":{"type":"Identifier","start":41,"end":44,"name":"KEY"}}]},"expression":false},"arguments":[]}}]},"array-comprehension-filter":{"type":"Program","start":0,"end":94,"body":[{"type":"ExpressionStatement","start":0,"end":94,"expression":{"type":"CallExpression","start":0,"end":93,"callee":{"type":"MemberExpression","start":0,"end":53,"object":{"type":"CallExpression","start":0,"end":49,"callee":{"type":"MemberExpression","start":0,"end":12,"object":{"type":"Identifier","start":0,"end":5,"name":"ARRAY"},"property":{"type":"Identifier","start":6,"end":12,"name":"filter"},"computed":false},"arguments":[{"type":"FunctionExpression","start":13,"end":48,"id":null,"params":[{"type":"Identifier","start":23,"end":26,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":28,"end":48,"body":[{"type":"ReturnStatement","start":32,"end":46,"argument":{"type":"Identifier","start":39,"end":45,"name":"FILTER"}}]},"expression":false}]},"property":{"type":"Identifier","start":50,"end":53,"name":"map"},"computed":false},"arguments":[{"type":"FunctionExpression","start":54,"end":92,"id":null,"params":[{"type":"Identifier","start":64,"end":67,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":69,"end":92,"body":[{"type":"ReturnStatement","start":73,"end":90,"argument":{"type":"Identifier","start":80,"end":89,"name":"STATEMENT"}}]},"expression":false}]}}]},"array-comprehension-for-each":{"type":"Program","start":0,"end":35,"body":[{"type":"ExpressionStatement","start":0,"end":35,"expression":{"type":"CallExpression","start":0,"end":34,"callee":{"type":"MemberExpression","start":0,"end":13,"object":{"type":"Identifier","start":0,"end":5,"name":"ARRAY"},"property":{"type":"Identifier","start":6,"end":13,"name":"forEach"},"computed":false},"arguments":[{"type":"FunctionExpression","start":14,"end":33,"id":null,"params":[{"type":"Identifier","start":24,"end":27,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":29,"end":33,"body":[]},"expression":false}]}}]},"array-comprehension-map":{"type":"Program","start":0,"end":50,"body":[{"type":"ExpressionStatement","start":0,"end":50,"expression":{"type":"CallExpression","start":0,"end":49,"callee":{"type":"MemberExpression","start":0,"end":9,"object":{"type":"Identifier","start":0,"end":5,"name":"ARRAY"},"property":{"type":"Identifier","start":6,"end":9,"name":"map"},"computed":false},"arguments":[{"type":"FunctionExpression","start":10,"end":48,"id":null,"params":[{"type":"Identifier","start":20,"end":23,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":25,"end":48,"body":[{"type":"ReturnStatement","start":29,"end":46,"argument":{"type":"Identifier","start":36,"end":45,"name":"STATEMENT"}}]},"expression":false}]}}]},"array-push":{"type":"Program","start":0,"end":20,"body":[{"type":"ExpressionStatement","start":0,"end":20,"expression":{"type":"CallExpression","start":0,"end":19,"callee":{"type":"MemberExpression","start":0,"end":8,"object":{"type":"Identifier","start":0,"end":3,"name":"KEY"},"property":{"type":"Identifier","start":4,"end":8,"name":"push"},"computed":false},"arguments":[{"type":"Identifier","start":9,"end":18,"name":"STATEMENT"}]}}]},"call":{"type":"Program","start":0,"end":21,"body":[{"type":"ExpressionStatement","start":0,"end":21,"expression":{"type":"CallExpression","start":0,"end":20,"callee":{"type":"MemberExpression","start":0,"end":11,"object":{"type":"Identifier","start":0,"end":6,"name":"OBJECT"},"property":{"type":"Identifier","start":7,"end":11,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":12,"end":19,"name":"CONTEXT"}]}}]},"class-props":{"type":"Program","start":0,"end":192,"body":[{"type":"ExpressionStatement","start":0,"end":192,"expression":{"type":"FunctionExpression","start":1,"end":191,"id":null,"params":[{"type":"Identifier","start":11,"end":16,"name":"child"},{"type":"Identifier","start":18,"end":29,"name":"staticProps"},{"type":"Identifier","start":31,"end":44,"name":"instanceProps"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":46,"end":191,"body":[{"type":"IfStatement","start":50,"end":111,"test":{"type":"Identifier","start":54,"end":65,"name":"staticProps"},"consequent":{"type":"ExpressionStatement","start":67,"end":111,"expression":{"type":"CallExpression","start":67,"end":110,"callee":{"type":"MemberExpression","start":67,"end":90,"object":{"type":"Identifier","start":67,"end":73,"name":"Object"},"property":{"type":"Identifier","start":74,"end":90,"name":"defineProperties"},"computed":false},"arguments":[{"type":"Identifier","start":91,"end":96,"name":"child"},{"type":"Identifier","start":98,"end":109,"name":"staticProps"}]}},"alternate":null},{"type":"IfStatement","start":114,"end":189,"test":{"type":"Identifier","start":118,"end":131,"name":"instanceProps"},"consequent":{"type":"ExpressionStatement","start":133,"end":189,"expression":{"type":"CallExpression","start":133,"end":188,"callee":{"type":"MemberExpression","start":133,"end":156,"object":{"type":"Identifier","start":133,"end":139,"name":"Object"},"property":{"type":"Identifier","start":140,"end":156,"name":"defineProperties"},"computed":false},"arguments":[{"type":"MemberExpression","start":157,"end":172,"object":{"type":"Identifier","start":157,"end":162,"name":"child"},"property":{"type":"Identifier","start":163,"end":172,"name":"prototype"},"computed":false},{"type":"Identifier","start":174,"end":187,"name":"instanceProps"}]}},"alternate":null}]},"expression":false}}]},"class-super-constructor-call":{"type":"Program","start":0,"end":34,"body":[{"type":"ExpressionStatement","start":0,"end":34,"expression":{"type":"CallExpression","start":0,"end":33,"callee":{"type":"MemberExpression","start":0,"end":16,"object":{"type":"Identifier","start":0,"end":10,"name":"SUPER_NAME"},"property":{"type":"Identifier","start":11,"end":16,"name":"apply"},"computed":false},"arguments":[{"type":"ThisExpression","start":17,"end":21},{"type":"Identifier","start":23,"end":32,"name":"arguments"}]}}]},"class":{"type":"Program","start":0,"end":80,"body":[{"type":"ExpressionStatement","start":0,"end":80,"expression":{"type":"CallExpression","start":0,"end":80,"callee":{"type":"FunctionExpression","start":1,"end":77,"id":null,"params":[],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":13,"end":77,"body":[{"type":"VariableDeclaration","start":17,"end":53,"declarations":[{"type":"VariableDeclarator","start":21,"end":52,"id":{"type":"Identifier","start":21,"end":31,"name":"CLASS_NAME"},"init":{"type":"FunctionExpression","start":34,"end":52,"id":null,"params":[],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":46,"end":52,"body":[]},"expression":false}}],"kind":"var"},{"type":"ReturnStatement","start":57,"end":75,"argument":{"type":"Identifier","start":64,"end":74,"name":"CLASS_NAME"}}]},"expression":false},"arguments":[]}}]},"exports-assign-key":{"type":"Program","start":0,"end":35,"body":[{"type":"ExpressionStatement","start":0,"end":35,"expression":{"type":"AssignmentExpression","start":0,"end":34,"operator":"=","left":{"type":"MemberExpression","start":0,"end":21,"object":{"type":"Identifier","start":0,"end":7,"name":"exports"},"property":{"type":"Identifier","start":8,"end":21,"name":"VARIABLE_NAME"},"computed":false},"right":{"type":"MemberExpression","start":24,"end":34,"object":{"type":"Identifier","start":24,"end":30,"name":"OBJECT"},"property":{"type":"Identifier","start":31,"end":34,"name":"KEY"},"computed":false}}}]},"exports-assign":{"type":"Program","start":0,"end":20,"body":[{"type":"ExpressionStatement","start":0,"end":20,"expression":{"type":"AssignmentExpression","start":0,"end":19,"operator":"=","left":{"type":"MemberExpression","start":0,"end":11,"object":{"type":"Identifier","start":0,"end":7,"name":"exports"},"property":{"type":"Identifier","start":8,"end":11,"name":"KEY"},"computed":false},"right":{"type":"Identifier","start":14,"end":19,"name":"VALUE"}}}]},"exports-default":{"type":"Program","start":0,"end":24,"body":[{"type":"ExpressionStatement","start":0,"end":24,"expression":{"type":"AssignmentExpression","start":0,"end":23,"operator":"=","left":{"type":"MemberExpression","start":0,"end":15,"object":{"type":"Identifier","start":0,"end":7,"name":"exports"},"property":{"type":"Identifier","start":8,"end":15,"name":"default"},"computed":false},"right":{"type":"Identifier","start":18,"end":23,"name":"VALUE"}}}]},"exports-wildcard":{"type":"Program","start":0,"end":81,"body":[{"type":"ExpressionStatement","start":0,"end":81,"expression":{"type":"CallExpression","start":0,"end":80,"callee":{"type":"FunctionExpression","start":1,"end":71,"id":null,"params":[{"type":"Identifier","start":11,"end":14,"name":"obj"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":16,"end":71,"body":[{"type":"ForInStatement","start":20,"end":69,"left":{"type":"VariableDeclaration","start":25,"end":30,"declarations":[{"type":"VariableDeclarator","start":29,"end":30,"id":{"type":"Identifier","start":29,"end":30,"name":"i"},"init":null}],"kind":"var"},"right":{"type":"Identifier","start":34,"end":37,"name":"obj"},"body":{"type":"BlockStatement","start":39,"end":69,"body":[{"type":"ExpressionStatement","start":45,"end":65,"expression":{"type":"AssignmentExpression","start":45,"end":64,"operator":"=","left":{"type":"MemberExpression","start":45,"end":55,"object":{"type":"Identifier","start":45,"end":52,"name":"exports"},"property":{"type":"Identifier","start":53,"end":54,"name":"i"},"computed":true},"right":{"type":"MemberExpression","start":58,"end":64,"object":{"type":"Identifier","start":58,"end":61,"name":"obj"},"property":{"type":"Identifier","start":62,"end":63,"name":"i"},"computed":true}}}]}}]},"expression":false},"arguments":[{"type":"Identifier","start":73,"end":79,"name":"OBJECT"}]}}]},"extends":{"type":"Program","start":0,"end":235,"body":[{"type":"ExpressionStatement","start":0,"end":235,"expression":{"type":"FunctionExpression","start":1,"end":234,"id":null,"params":[{"type":"Identifier","start":11,"end":16,"name":"child"},{"type":"Identifier","start":18,"end":24,"name":"parent"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":26,"end":234,"body":[{"type":"ExpressionStatement","start":30,"end":204,"expression":{"type":"AssignmentExpression","start":30,"end":203,"operator":"=","left":{"type":"MemberExpression","start":30,"end":45,"object":{"type":"Identifier","start":30,"end":35,"name":"child"},"property":{"type":"Identifier","start":36,"end":45,"name":"prototype"},"computed":false},"right":{"type":"CallExpression","start":48,"end":203,"callee":{"type":"MemberExpression","start":48,"end":61,"object":{"type":"Identifier","start":48,"end":54,"name":"Object"},"property":{"type":"Identifier","start":55,"end":61,"name":"create"},"computed":false},"arguments":[{"type":"MemberExpression","start":62,"end":78,"object":{"type":"Identifier","start":62,"end":68,"name":"parent"},"property":{"type":"Identifier","start":69,"end":78,"name":"prototype"},"computed":false},{"type":"ObjectExpression","start":80,"end":202,"properties":[{"type":"Property","start":86,"end":198,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":86,"end":97,"name":"constructor"},"value":{"type":"ObjectExpression","start":99,"end":198,"properties":[{"type":"Property","start":107,"end":119,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":107,"end":112,"name":"value"},"value":{"type":"Identifier","start":114,"end":119,"name":"child"},"kind":"init"},{"type":"Property","start":127,"end":144,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":127,"end":137,"name":"enumerable"},"value":{"type":"Literal","start":139,"end":144,"value":false,"raw":"false"},"kind":"init"},{"type":"Property","start":152,"end":166,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":152,"end":160,"name":"writable"},"value":{"type":"Literal","start":162,"end":166,"value":true,"raw":"true"},"kind":"init"},{"type":"Property","start":174,"end":192,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":174,"end":186,"name":"configurable"},"value":{"type":"Literal","start":188,"end":192,"value":true,"raw":"true"},"kind":"init"}]},"kind":"init"}]}]}}},{"type":"ExpressionStatement","start":207,"end":232,"expression":{"type":"AssignmentExpression","start":207,"end":231,"operator":"=","left":{"type":"MemberExpression","start":207,"end":222,"object":{"type":"Identifier","start":207,"end":212,"name":"child"},"property":{"type":"Identifier","start":213,"end":222,"name":"__proto__"},"computed":false},"right":{"type":"Identifier","start":225,"end":231,"name":"parent"}}}]},"expression":false}}]},"for-of":{"type":"Program","start":0,"end":107,"body":[{"type":"ForStatement","start":0,"end":107,"init":{"type":"VariableDeclaration","start":5,"end":59,"declarations":[{"type":"VariableDeclarator","start":9,"end":49,"id":{"type":"Identifier","start":9,"end":21,"name":"ITERATOR_KEY"},"init":{"type":"CallExpression","start":24,"end":49,"callee":{"type":"MemberExpression","start":24,"end":47,"object":{"type":"Identifier","start":24,"end":30,"name":"OBJECT"},"property":{"type":"MemberExpression","start":31,"end":46,"object":{"type":"Identifier","start":31,"end":37,"name":"Symbol"},"property":{"type":"Identifier","start":38,"end":46,"name":"iterator"},"computed":false},"computed":true},"arguments":[]}},{"type":"VariableDeclarator","start":51,"end":59,"id":{"type":"Identifier","start":51,"end":59,"name":"STEP_KEY"},"init":null}],"kind":"var"},"test":{"type":"UnaryExpression","start":61,"end":99,"operator":"!","prefix":true,"argument":{"type":"MemberExpression","start":62,"end":99,"object":{"type":"AssignmentExpression","start":63,"end":93,"operator":"=","left":{"type":"Identifier","start":63,"end":71,"name":"STEP_KEY"},"right":{"type":"CallExpression","start":74,"end":93,"callee":{"type":"MemberExpression","start":74,"end":91,"object":{"type":"Identifier","start":74,"end":86,"name":"ITERATOR_KEY"},"property":{"type":"Identifier","start":87,"end":91,"name":"next"},"computed":false},"arguments":[]}},"property":{"type":"Identifier","start":95,"end":99,"name":"done"},"computed":false}},"update":null,"body":{"type":"BlockStatement","start":103,"end":107,"body":[]}}]},"function-return-obj":{"type":"Program","start":0,"end":42,"body":[{"type":"ExpressionStatement","start":0,"end":42,"expression":{"type":"CallExpression","start":0,"end":42,"callee":{"type":"FunctionExpression","start":1,"end":33,"id":null,"params":[{"type":"Identifier","start":11,"end":14,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":16,"end":33,"body":[{"type":"ReturnStatement","start":20,"end":31,"argument":{"type":"Identifier","start":27,"end":30,"name":"KEY"}}]},"expression":false},"arguments":[{"type":"Identifier","start":35,"end":41,"name":"OBJECT"}]}}]},"if-undefined-set-to":{"type":"Program","start":0,"end":47,"body":[{"type":"IfStatement","start":0,"end":47,"test":{"type":"BinaryExpression","start":4,"end":26,"left":{"type":"Identifier","start":4,"end":12,"name":"VARIABLE"},"operator":"===","right":{"type":"Identifier","start":17,"end":26,"name":"undefined"}},"consequent":{"type":"ExpressionStatement","start":28,"end":47,"expression":{"type":"AssignmentExpression","start":28,"end":46,"operator":"=","left":{"type":"Identifier","start":28,"end":36,"name":"VARIABLE"},"right":{"type":"Identifier","start":39,"end":46,"name":"DEFAULT"}}},"alternate":null}]},"object-define-properties-closure":{"type":"Program","start":0,"end":54,"body":[{"type":"ExpressionStatement","start":0,"end":54,"expression":{"type":"CallExpression","start":0,"end":53,"callee":{"type":"FunctionExpression","start":1,"end":44,"id":null,"params":[{"type":"Identifier","start":11,"end":14,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":16,"end":44,"body":[{"type":"ExpressionStatement","start":20,"end":28,"expression":{"type":"Identifier","start":20,"end":27,"name":"CONTENT"}},{"type":"ReturnStatement","start":31,"end":42,"argument":{"type":"Identifier","start":38,"end":41,"name":"KEY"}}]},"expression":false},"arguments":[{"type":"Identifier","start":46,"end":52,"name":"OBJECT"}]}}]},"object-define-properties":{"type":"Program","start":0,"end":39,"body":[{"type":"ExpressionStatement","start":0,"end":39,"expression":{"type":"CallExpression","start":0,"end":38,"callee":{"type":"MemberExpression","start":0,"end":23,"object":{"type":"Identifier","start":0,"end":6,"name":"Object"},"property":{"type":"Identifier","start":7,"end":23,"name":"defineProperties"},"computed":false},"arguments":[{"type":"Identifier","start":24,"end":30,"name":"OBJECT"},{"type":"Identifier","start":32,"end":37,"name":"PROPS"}]}}]},"prototype-identifier":{"type":"Program","start":0,"end":20,"body":[{"type":"ExpressionStatement","start":0,"end":20,"expression":{"type":"MemberExpression","start":0,"end":20,"object":{"type":"Identifier","start":0,"end":10,"name":"CLASS_NAME"},"property":{"type":"Identifier","start":11,"end":20,"name":"prototype"},"computed":false}}]},"require-assign-key":{"type":"Program","start":0,"end":45,"body":[{"type":"VariableDeclaration","start":0,"end":45,"declarations":[{"type":"VariableDeclarator","start":4,"end":44,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"MemberExpression","start":20,"end":44,"object":{"type":"CallExpression","start":20,"end":40,"callee":{"type":"Identifier","start":20,"end":27,"name":"require"},"arguments":[{"type":"Identifier","start":28,"end":39,"name":"MODULE_NAME"}]},"property":{"type":"Identifier","start":41,"end":44,"name":"KEY"},"computed":false}}],"kind":"var"}]},"require-assign":{"type":"Program","start":0,"end":41,"body":[{"type":"VariableDeclaration","start":0,"end":41,"declarations":[{"type":"VariableDeclarator","start":4,"end":40,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"CallExpression","start":20,"end":40,"callee":{"type":"Identifier","start":20,"end":27,"name":"require"},"arguments":[{"type":"Identifier","start":28,"end":39,"name":"MODULE_NAME"}]}}],"kind":"var"}]},"require":{"type":"Program","start":0,"end":21,"body":[{"type":"ExpressionStatement","start":0,"end":21,"expression":{"type":"CallExpression","start":0,"end":20,"callee":{"type":"Identifier","start":0,"end":7,"name":"require"},"arguments":[{"type":"Identifier","start":8,"end":19,"name":"MODULE_NAME"}]}}]},"slice":{"type":"Program","start":0,"end":22,"body":[{"type":"ExpressionStatement","start":0,"end":22,"expression":{"type":"MemberExpression","start":0,"end":21,"object":{"type":"MemberExpression","start":0,"end":15,"object":{"type":"Identifier","start":0,"end":5,"name":"Array"},"property":{"type":"Identifier","start":6,"end":15,"name":"prototype"},"computed":false},"property":{"type":"Identifier","start":16,"end":21,"name":"slice"},"computed":false}}]},"umd-runner-body":{"type":"Program","start":0,"end":204,"body":[{"type":"ExpressionStatement","start":0,"end":204,"expression":{"type":"FunctionExpression","start":1,"end":202,"id":null,"params":[{"type":"Identifier","start":11,"end":18,"name":"factory"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":20,"end":202,"body":[{"type":"IfStatement","start":24,"end":200,"test":{"type":"LogicalExpression","start":28,"end":70,"left":{"type":"BinaryExpression","start":28,"end":56,"left":{"type":"UnaryExpression","start":28,"end":41,"operator":"typeof","prefix":true,"argument":{"type":"Identifier","start":35,"end":41,"name":"define"}},"operator":"===","right":{"type":"Literal","start":46,"end":56,"value":"function","raw":"\"function\""}},"operator":"&&","right":{"type":"MemberExpression","start":60,"end":70,"object":{"type":"Identifier","start":60,"end":66,"name":"define"},"property":{"type":"Identifier","start":67,"end":70,"name":"amd"},"computed":false}},"consequent":{"type":"BlockStatement","start":72,"end":113,"body":[{"type":"ExpressionStatement","start":78,"end":109,"expression":{"type":"CallExpression","start":78,"end":108,"callee":{"type":"Identifier","start":78,"end":84,"name":"define"},"arguments":[{"type":"Identifier","start":85,"end":98,"name":"AMD_ARGUMENTS"},{"type":"Identifier","start":100,"end":107,"name":"factory"}]}}]},"alternate":{"type":"IfStatement","start":119,"end":200,"test":{"type":"BinaryExpression","start":123,"end":153,"left":{"type":"UnaryExpression","start":123,"end":137,"operator":"typeof","prefix":true,"argument":{"type":"Identifier","start":130,"end":137,"name":"exports"}},"operator":"!==","right":{"type":"Literal","start":142,"end":153,"value":"undefined","raw":"\"undefined\""}},"consequent":{"type":"BlockStatement","start":155,"end":200,"body":[{"type":"ExpressionStatement","start":161,"end":196,"expression":{"type":"CallExpression","start":161,"end":195,"callee":{"type":"Identifier","start":161,"end":168,"name":"factory"},"arguments":[{"type":"Identifier","start":169,"end":176,"name":"exports"},{"type":"Identifier","start":178,"end":194,"name":"COMMON_ARGUMENTS"}]}}]},"alternate":null}}]},"expression":false}}]},"umd":{"type":"Program","start":0,"end":0,"body":[]}} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
3098398
110
50831
1
412
9
2