fix up styling of #518

This commit is contained in:
Sebastian McKenzie
2015-01-17 18:53:40 +11:00
parent ddb1c718f1
commit 3eb4d5b466
2 changed files with 7 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
* Use %HasFastProperties(obj) and --allow-natives-syntax to check whether
* a particular object already has fast properties.
*/
module.exports = function toFastProperties(obj) {
/*jshint -W027*/
function f() {}

View File

@@ -1,6 +1,6 @@
var toFastProperties = require("../to-fast-properties");
var esutils = require("esutils");
var _ = require("lodash");
var toFastProperties = require("../to-fast-properties");
var t = exports;
@@ -15,6 +15,7 @@ t.NATIVE_TYPE_NAMES = ["Array", "Object", "Number", "Boolean", "Date", "Array",
* @param {String} type
* @param {Boolean?} skipAliasCheck
*/
function registerType(type, skipAliasCheck) {
var is = t["is" + type] = function (node, opts) {
return t.is(type, node, opts, skipAliasCheck);
@@ -65,6 +66,7 @@ _.each(t.FLIPPED_ALIAS_KEYS, function (types, type) {
* @param {Boolean?} skipAliasCheck
* @returns {Boolean} isOfType
*/
t.is = function (type, node, opts, skipAliasCheck) {
if (!node) return;
@@ -545,10 +547,10 @@ t.inheritsComments = function (child, parent) {
*/
t.inherits = function (child, parent) {
child.loc = parent.loc;
child.end = parent.end;
child.range = parent.range;
child.start = parent.start;
child.loc = parent.loc;
child.end = parent.end;
t.inheritsComments(child, parent);
return child;
};
@@ -576,4 +578,4 @@ t.isSpecifierDefault = function (specifier) {
};
toFastProperties(t);
toFastProperties(t.VISITOR_KEYS);
toFastProperties(t.VISITOR_KEYS);