mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 04:03:47 +00:00
version() must have int type argument.
Fixed VERSION setting to match shell.js Fixed 'pass!' string to match 'pass'
This commit is contained in:
parent
3cea9cfa35
commit
4bc7c46423
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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 ).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user