mirror of https://github.com/tc39/test262.git
Bug 1125: Move escape and unescape into "annexB"
This commit is contained in:
parent
06879c044f
commit
66563223a5
|
@ -4,7 +4,7 @@
|
|||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
||||
/**
|
||||
* @path ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js
|
||||
* @path annexB/B.2.1.js
|
||||
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.escape)
|
||||
*/
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Check type of various properties
|
||||
*
|
||||
* @path annexB/B.2.1.propertyCheck.js
|
||||
* @description Checking properties of this object (escape)
|
||||
*/
|
||||
|
||||
if (typeof this.escape === "undefined") $ERROR('#1: typeof this.escape !== "undefined"');
|
||||
if (typeof this['escape'] === "undefined") $ERROR('#2: typeof this["escape"] !== "undefined"');
|
|
@ -4,7 +4,7 @@
|
|||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
||||
/**
|
||||
* @path ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js
|
||||
* @path annexB/B.2.2.js
|
||||
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.unescape)
|
||||
*/
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Check type of various properties
|
||||
*
|
||||
* @path annexB/B.2.2.propertyCheck.js
|
||||
* @description Checking properties of this object (unescape)
|
||||
*/
|
||||
|
||||
if (typeof this.unescape === "undefined") $ERROR('#1: typeof this.unescape !== "undefined"');
|
||||
if (typeof this['unescape'] === "undefined") $ERROR('#2: typeof this["unescape"] !== "undefined"');
|
|
@ -17,10 +17,6 @@ if (typeof this.parseInt === "undefined") $ERROR('#5: typeof this.parseInt !==
|
|||
if (typeof this['parseInt'] === "undefined") $ERROR('#6: typeof this["parseInt"] !== "undefined"');
|
||||
if (typeof this.parseFloat === "undefined") $ERROR('#7: typeof this.parseFloat !== "undefined"');
|
||||
if (typeof this['parseFloat'] === "undefined") $ERROR('#8: typeof this["parseFloat"] !== "undefined"');
|
||||
if (typeof this.escape === "undefined") $ERROR('#9: typeof this.escape !== "undefined"');
|
||||
if (typeof this['escape'] === "undefined") $ERROR('#10: typeof this["escape"] !== "undefined"');
|
||||
if (typeof this.unescape === "undefined") $ERROR('#11: typeof this.unescape !== "undefined"');
|
||||
if (typeof this['unescape'] === "undefined") $ERROR('#12: typeof this["unescape"] !== "undefined"');
|
||||
if (typeof this.isNaN === "undefined") $ERROR('#13: typeof this.isNaN !== "undefined"');
|
||||
if (typeof this['isNaN'] === "undefined") $ERROR('#14: typeof this["isNaN"] !== "undefined"');
|
||||
if (typeof this.isFinite === "undefined") $ERROR('#15: typeof this.isFinite !== "undefined"');
|
||||
|
|
Loading…
Reference in New Issue