1
0
Fork 0

{new,} TypeError

closure/master
Mike Gerwitz 2011-01-24 23:57:19 -05:00
parent 188ad2f4eb
commit 194aa02402
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ exports.buildMethod = function( members, meta, name, value, keywords )
// disallow overriding properties with methods // disallow overriding properties with methods
if ( !( prev instanceof Function ) ) if ( !( prev instanceof Function ) )
{ {
throw new TypeError( throw TypeError(
"Cannot override property '" + name + "' with method" "Cannot override property '" + name + "' with method"
); );
} }
@ -90,7 +90,7 @@ exports.buildMethod = function( members, meta, name, value, keywords )
< ( prev.__length || prev.length ) < ( prev.__length || prev.length )
) )
{ {
throw new TypeError( throw TypeError(
"Declaration of method '" + name + "' must be compatiable " + "Declaration of method '" + name + "' must be compatiable " +
"with that of its supertype" "with that of its supertype"
); );