2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: Global object properties have attributes { DontEnum }
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 10.2.3_A2.1_T2
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Global execution context - Function Properties
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#1
|
|
|
|
for (var x in this) {
|
2018-02-15 21:25:21 +01:00
|
|
|
if (x === 'eval') {
|
2011-09-07 08:35:18 +02:00
|
|
|
$ERROR("#1: 'eval' have attribute DontEnum");
|
2018-02-15 21:25:21 +01:00
|
|
|
} else if (x === 'parseInt') {
|
2011-09-07 08:35:18 +02:00
|
|
|
$ERROR("#1: 'parseInt' have attribute DontEnum");
|
2018-02-15 21:25:21 +01:00
|
|
|
} else if (x === 'parseFloat') {
|
2011-09-07 08:35:18 +02:00
|
|
|
$ERROR("#1: 'parseFloat' have attribute DontEnum");
|
2018-02-15 21:25:21 +01:00
|
|
|
} else if (x === 'isNaN') {
|
2011-09-07 08:35:18 +02:00
|
|
|
$ERROR("#1: 'isNaN' have attribute DontEnum");
|
2018-02-15 21:25:21 +01:00
|
|
|
} else if (x === 'isFinite') {
|
2011-09-07 08:35:18 +02:00
|
|
|
$ERROR("#1: 'isFinite' have attribute DontEnum");
|
2018-02-15 21:25:21 +01:00
|
|
|
} else if (x === 'decodeURI') {
|
2011-09-07 08:35:18 +02:00
|
|
|
$ERROR("#1: 'decodeURI' have attribute DontEnum");
|
2018-02-15 21:25:21 +01:00
|
|
|
} else if (x === 'decodeURIComponent') {
|
2011-09-07 08:35:18 +02:00
|
|
|
$ERROR("#1: 'decodeURIComponent' have attribute DontEnum");
|
2018-02-15 21:25:21 +01:00
|
|
|
} else if (x === 'encodeURI') {
|
2011-09-07 08:35:18 +02:00
|
|
|
$ERROR("#1: 'encodeURI' have attribute DontEnum");
|
2018-02-15 21:25:21 +01:00
|
|
|
} else if (x === 'encodeURIComponent') {
|
2011-09-07 08:35:18 +02:00
|
|
|
$ERROR("#1: 'encodeURIComponent' have attribute DontEnum");
|
2018-02-15 21:25:21 +01:00
|
|
|
}
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|