michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Delete operator can't delete reference, so it returns false to be applyed to reference michael@0: * michael@0: * @path ch08/8.7/S8.7.1_A2.js michael@0: * @description Try to delete y, where y is var y=1 michael@0: * @noStrict michael@0: */ michael@0: michael@0: var y = 1; michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: if(delete y){ michael@0: $ERROR('#1: y = 1; (delete y) === false. Actual: ' + ((delete y))); michael@0: }; michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#2 michael@0: if (y !== 1) { michael@0: $ERROR('#2: y = 1; delete y; y === 1. Actual: ' + (y)); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: