From 4bc7c46423cbc5fb4cd81158f9c607b7f8bc4f82 Mon Sep 17 00:00:00 2001 From: "rogerl%netscape.com" Date: Mon, 6 Dec 1999 22:47:51 +0000 Subject: [PATCH] version() must have int type argument. Fixed VERSION setting to match shell.js Fixed 'pass!' string to match 'pass' --- js/tests/ecma_2/Exceptions/function-001.js | 4 ++-- js/tests/ecma_2/shell.js | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/js/tests/ecma_2/Exceptions/function-001.js b/js/tests/ecma_2/Exceptions/function-001.js index 9937918c130e..3cbd19e6e166 100644 --- a/js/tests/ecma_2/Exceptions/function-001.js +++ b/js/tests/ecma_2/Exceptions/function-001.js @@ -20,7 +20,7 @@ * Date: 11 August 1998 */ var SECTION = "function-001.js"; - var VERSION = "JS1_1"; + var VERSION = "JS_12"; var TITLE = "functions not separated by semicolons are errors in version 120 and higher"; var BUGNUMBER="10278"; @@ -36,7 +36,7 @@ try { eval("function f(){}function g(){}"); } catch ( e ) { - result = "pass!" + result = "pass" exception = e.toString(); } diff --git a/js/tests/ecma_2/shell.js b/js/tests/ecma_2/shell.js index f793a36e154c..e324cb8f7f91 100644 --- a/js/tests/ecma_2/shell.js +++ b/js/tests/ecma_2/shell.js @@ -74,19 +74,20 @@ function startTest() { if ( version ) { // JavaScript 1.3 is supposed to be compliant ecma version 1.0 if ( VERSION == "ECMA_1" ) { - version ( "130" ); + version ( 130 ); } if ( VERSION == "JS_13" ) { - version ( "130" ); + version ( 130 ); } if ( VERSION == "JS_12" ) { - version ( "120" ); + version ( 120 ); } if ( VERSION == "JS_11" ) { - version ( "110" ); + version ( 110 ); } } + // for ecma version 2.0, we will leave the javascript version to // the default ( for now ).