js/src/tests/test262/ch11/11.4/11.4.1/11.4.1-3-2.js

branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
equal deleted inserted replaced
-1:000000000000 0:7850c50b92bc
1 /// Copyright (c) 2012 Ecma International. All rights reserved.
2 /// Ecma International makes this code available under the terms and conditions set
3 /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
4 /// "Use Terms"). Any redistribution of this code must retain the above
5 /// copyright and this notice and otherwise comply with the Use Terms.
6 /**
7 * @path ch11/11.4/11.4.1/11.4.1-3-2.js
8 * @description delete operator throws ReferenceError when deleting an explicitly qualified yet unresolvable reference (base obj undefined)
9 */
10
11
12 function testcase() {
13 // just cooking up a long/veryLikely unique name
14 try
15 {
16 var d = delete __ES3_1_test_suite_test_11_4_1_3_unique_id_2__.x;
17 }
18 catch(e)
19 {
20 if (e instanceof ReferenceError)
21 return true;
22 }
23 }
24 runTestCase(testcase);

mercurial