diff --git a/mozilla/js/js2/js2.cpp b/mozilla/js/js2/js2.cpp index d652608e6cb..f15c084e7df 100644 --- a/mozilla/js/js2/js2.cpp +++ b/mozilla/js/js2/js2.cpp @@ -317,7 +317,7 @@ static void readEvalPrint(FILE *in, World &world) char * tests[] = { #ifdef NEW_PARSER - "function f(a,b,|'x' 'y' c=0) { return a+b+c; } print(f(1,2,3), 'should be 6'); return;", + "function f(a,b,|'x' 'y' c=0) { return a+b+c; } print(f(1,2,x:3), 'should be 6'); return;", #endif "function fact(n) { if (n > 1) return n * fact(n-1); else return 1; } print(fact(6), \" should be 720\"); return;" , "a = { f1: 1, f2: 2}; print(a.f2++, \" should be 2\"); print(a.f2 <<= 1, \" should be 6\"); return;" , diff --git a/mozilla/js2/tests/cpp/js2_shell.cpp b/mozilla/js2/tests/cpp/js2_shell.cpp index d652608e6cb..f15c084e7df 100644 --- a/mozilla/js2/tests/cpp/js2_shell.cpp +++ b/mozilla/js2/tests/cpp/js2_shell.cpp @@ -317,7 +317,7 @@ static void readEvalPrint(FILE *in, World &world) char * tests[] = { #ifdef NEW_PARSER - "function f(a,b,|'x' 'y' c=0) { return a+b+c; } print(f(1,2,3), 'should be 6'); return;", + "function f(a,b,|'x' 'y' c=0) { return a+b+c; } print(f(1,2,x:3), 'should be 6'); return;", #endif "function fact(n) { if (n > 1) return n * fact(n-1); else return 1; } print(fact(6), \" should be 720\"); return;" , "a = { f1: 1, f2: 2}; print(a.f2++, \" should be 2\"); print(a.f2 <<= 1, \" should be 6\"); return;" ,