Added warning handler to class facade
- This isn't yet tested; have to begin test case for facade - Do note that the actual calling by MemberBuilderValidator is testedclosure/master
parent
8bcd55dbbb
commit
bc589c035f
10
lib/class.js
10
lib/class.js
|
@ -25,6 +25,9 @@
|
||||||
var util = require( __dirname + '/util' ),
|
var util = require( __dirname + '/util' ),
|
||||||
ClassBuilder = require( __dirname + '/ClassBuilder' ),
|
ClassBuilder = require( __dirname + '/ClassBuilder' ),
|
||||||
|
|
||||||
|
warn = require( __dirname + '/warn' ),
|
||||||
|
Warning = warn.Warning,
|
||||||
|
|
||||||
MethodWrapperFactory = require( __dirname + '/MethodWrapperFactory' ),
|
MethodWrapperFactory = require( __dirname + '/MethodWrapperFactory' ),
|
||||||
wrappers = require( __dirname + '/MethodWrappers' ).standard,
|
wrappers = require( __dirname + '/MethodWrappers' ).standard,
|
||||||
|
|
||||||
|
@ -32,7 +35,12 @@ var util = require( __dirname + '/util' ),
|
||||||
require( __dirname + '/MemberBuilder' )(
|
require( __dirname + '/MemberBuilder' )(
|
||||||
MethodWrapperFactory( wrappers.wrapNew ),
|
MethodWrapperFactory( wrappers.wrapNew ),
|
||||||
MethodWrapperFactory( wrappers.wrapOverride ),
|
MethodWrapperFactory( wrappers.wrapOverride ),
|
||||||
require( __dirname + '/MemberBuilderValidator' )()
|
require( __dirname + '/MemberBuilderValidator' )(
|
||||||
|
function( warning )
|
||||||
|
{
|
||||||
|
warn.handle( Warning( warning ) );
|
||||||
|
}
|
||||||
|
)
|
||||||
),
|
),
|
||||||
require( __dirname + '/VisibilityObjectFactoryFactory' )
|
require( __dirname + '/VisibilityObjectFactoryFactory' )
|
||||||
.fromEnvironment()
|
.fromEnvironment()
|
||||||
|
|
Loading…
Reference in New Issue