From b74e03704bd233259a5d4ed66504717685afab98 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 6 Jul 2011 18:49:01 -0400 Subject: [PATCH] Corrected member builder method test testCannotOverridePropertyWithMethod --- test/test-member_builder-method.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test-member_builder-method.js b/test/test-member_builder-method.js index 24d39b2..30fc6c9 100644 --- a/test/test-member_builder-method.js +++ b/test/test-member_builder-method.js @@ -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