1
0
Fork 0

Corrected member builder method test testCannotOverridePropertyWithMethod

closure/master
Mike Gerwitz 2011-07-06 18:49:01 -04:00
parent 65d988b1c6
commit b74e03704b
1 changed files with 6 additions and 0 deletions

View File

@ -55,8 +55,14 @@ mb_common.assertCommon();
{
mb_common.value = 'moofoo';
mb_common.funcVal = undefined;
// temporarily alter builder
mb_common.buildMember = builder.buildProp;
mb_common.buildMemberQuick();
// restore builder
mb_common.buildMember = builder.buildMethod;
assert.throws( function()
{
// attempt to override with function