1 /** 2 File Name: lexical-010.js 3 Corresponds To: 7.4.3-3-n.js 4 ECMA Section: 7.4.3 5 6 Description: 7 The following words are used as keywords in proposed extensions and are 8 therefore reserved to allow for the possibility of future adoption of 9 those extensions. 10 11 FutureReservedWord :: one of 12 case debugger export super 13 catch default extends switch 14 class do finally throw 15 const enum import try 16 17 Author: christine (at) netscape.com 18 Date: 12 november 1997 19 */ 20 var SECTION = "lexical-010"; 21 var VERSION = "ECMA_1"; 22 var TITLE = "Future Reserved Words"; 23 24 startTest(); 25 writeHeaderToLog( SECTION + " "+ TITLE); 26 27 var tc = 0; 28 var testcases = new Array(); 29 30 var result = "Failed"; 31 var exception = "No exception thrown"; 32 var expect = "Passed"; 33 34 try { 35 eval("export = true;"); 36 } catch ( e ) { 37 result = expect; 38 exception = e.toString(); 39 } 40 41 testcases[tc++] = new TestCase( 42 SECTION, 43 "export = true" + 44 " (threw " + exception +")", 45 expect, 46 result ); 47 48 test(); 49