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 deletes pure property, so it returns true to be applyed to this.property michael@0: * michael@0: * @path ch08/8.7/S8.7.1_A1.js michael@0: * @description Try to delete this.y, where y is this.y=1 michael@0: */ michael@0: michael@0: this.y = 1; michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: if((delete this.y) !== true){ michael@0: $ERROR('#1: this.y = 1; (delete this.y) === true. Actual: ' + ((delete this.y))); michael@0: }; michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#2 michael@0: if (this.y !== undefined){ michael@0: $ERROR('#2: this.y = 1; (delete this.y) === true; this.y === undefined. Actual: ' + (this.y)); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: