summaryrefslogtreecommitdiff
path: root/test/suite/sputnik/Implementation_Diagnostics/S13.2.2_D20_T6.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik/Implementation_Diagnostics/S13.2.2_D20_T6.js')
-rw-r--r--test/suite/sputnik/Implementation_Diagnostics/S13.2.2_D20_T6.js47
1 files changed, 0 insertions, 47 deletions
diff --git a/test/suite/sputnik/Implementation_Diagnostics/S13.2.2_D20_T6.js b/test/suite/sputnik/Implementation_Diagnostics/S13.2.2_D20_T6.js
deleted file mode 100644
index c87a4e59c..000000000
--- a/test/suite/sputnik/Implementation_Diagnostics/S13.2.2_D20_T6.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
-* @name: S13.2.2_D20_T6;
-* @section: 13.2.2;
-* @assertion: function declaration inside of "with" statement is a fuction declaration inside of current execution context;
-*/
-
-//////////////////////////////////////////////////////////////////////////////
-//CHECK#0
-if (typeof __func !== "function") {
- $ERROR('#0: function declaration inside of "with" statement is a fuction declaration inside of current execution context');
-}
-//
-//////////////////////////////////////////////////////////////////////////////
-
-var a = 1;
-
-var __obj = {a:2};
-
-with (__obj)
-{
- while(0){
- function __func()
- {
- return a;
- }
- }
-}
-
-delete __obj;
-
-var __obj = {a:3};
-
-with (__obj)
-{
- result = __func();
-}
-
-//////////////////////////////////////////////////////////////////////////////
-//CHECK#1
-if (result !== 1) {
- $ERROR('#1: function declaration inside of "with" statement is a fuction declaration inside of current execution context');
-}
-//
-//////////////////////////////////////////////////////////////////////////////