mirror of
https://github.com/tc39/test262.git
synced 2025-07-22 21:45:04 +02:00
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
|
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
/// 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)
|
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.escape)
|
||||||
*/
|
*/
|
||||||
|
|
12
test/suite/annexB/B.2.1.propertyCheck.js
Normal file
12
test/suite/annexB/B.2.1.propertyCheck.js
Normal file
@ -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
|
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
/// 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)
|
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.unescape)
|
||||||
*/
|
*/
|
||||||
|
|
12
test/suite/annexB/B.2.2.propertyCheck.js
Normal file
12
test/suite/annexB/B.2.2.propertyCheck.js
Normal file
@ -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['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('#7: typeof this.parseFloat !== "undefined"');
|
||||||
if (typeof this['parseFloat'] === "undefined") $ERROR('#8: 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('#13: typeof this.isNaN !== "undefined"');
|
||||||
if (typeof this['isNaN'] === "undefined") $ERROR('#14: 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"');
|
if (typeof this.isFinite === "undefined") $ERROR('#15: typeof this.isFinite !== "undefined"');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user