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