version() must have int type argument.

Fixed VERSION setting to match shell.js
Fixed 'pass!' string to match 'pass'
This commit is contained in:
rogerl%netscape.com 1999-12-06 22:47:51 +00:00
parent 3cea9cfa35
commit 4bc7c46423
2 changed files with 7 additions and 6 deletions

View File

@ -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();
}

View File

@ -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 ).