1
0
Fork 0

Corrected new Closure Compiler warnings

perfodd
Mike Gerwitz 2014-01-06 22:05:05 -05:00
parent ffad3b81f3
commit e03454b2b9
2 changed files with 3 additions and 5 deletions

View File

@ -554,8 +554,6 @@ exports.getPropertyDescriptor = function( obj, prop, nobase )
/** /**
* Indicates whether or not the getPropertyDescriptor method is capable of * Indicates whether or not the getPropertyDescriptor method is capable of
* traversing the prototype chain * traversing the prototype chain
*
* @type {boolean}
*/ */
exports.defineSecureProp( exports.getPropertyDescriptor, 'canTraverse', exports.defineSecureProp( exports.getPropertyDescriptor, 'canTraverse',
( Object.getPrototypeOf ) ? true : false ( Object.getPrototypeOf ) ? true : false

View File

@ -48,7 +48,7 @@ var common = require( './common' ),
return this; return this;
}, },
'virtual double': function() 'virtual dbl': function()
{ {
hitDouble = true; hitDouble = true;
} }
@ -66,7 +66,7 @@ var common = require( './common' ),
return this.__super( arg ); return this.__super( arg );
}, },
'override double': function() 'override dbl': function()
{ {
this.myMethod(); this.myMethod();
this.__super(); this.__super();
@ -95,7 +95,7 @@ assert.equal(
hitMethod = hitMethod2 = false; hitMethod = hitMethod2 = false;
var arg = 'foobar'; var arg = 'foobar';
sub_foo.myMethod().myMethod2( arg ).double(); sub_foo.myMethod().myMethod2( arg ).dbl();
// myMethod overrides without calling parent // myMethod overrides without calling parent
assert.equal( assert.equal(