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.3_T2
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Global execution context - Function Properties
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
2018-02-09 18:09:47 +01:00
|
|
|
var evalStr =
|
|
|
|
'//CHECK#1\n'+
|
|
|
|
'for (var x in this) {\n'+
|
|
|
|
' if ( x === \'eval\' ) {\n'+
|
|
|
|
' $ERROR("#1: \'eval\' have attribute DontEnum");\n'+
|
|
|
|
' } else if ( x === \'parseInt\' ) {\n'+
|
|
|
|
' $ERROR("#1: \'parseInt\' have attribute DontEnum");\n'+
|
|
|
|
' } else if ( x === \'parseFloat\' ) {\n'+
|
|
|
|
' $ERROR("#1: \'parseFloat\' have attribute DontEnum");\n'+
|
|
|
|
' } else if ( x === \'isNaN\' ) {\n'+
|
|
|
|
' $ERROR("#1: \'isNaN\' have attribute DontEnum");\n'+
|
|
|
|
' } else if ( x === \'isFinite\' ) {\n'+
|
|
|
|
' $ERROR("#1: \'isFinite\' have attribute DontEnum");\n'+
|
|
|
|
' } else if ( x === \'decodeURI\' ) {\n'+
|
|
|
|
' $ERROR("#1: \'decodeURI\' have attribute DontEnum");\n'+
|
|
|
|
' } else if ( x === \'decodeURIComponent\' ) {\n'+
|
|
|
|
' $ERROR("#1: \'decodeURIComponent\' have attribute DontEnum");\n'+
|
|
|
|
' } else if ( x === \'encodeURI\' ) {\n'+
|
|
|
|
' $ERROR("#1: \'encodeURI\' have attribute DontEnum");\n'+
|
|
|
|
' } else if ( x === \'encodeURIComponent\' ) {\n'+
|
|
|
|
' $ERROR("#1: \'encodeURIComponent\' have attribute DontEnum");\n'+
|
|
|
|
' }\n'+
|
|
|
|
'}\n';
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
eval(evalStr);
|