jdk-24/nashorn/test/script/basic/varargs.js.EXPECTED
Jim Laskey 98762d6ee0 8005403: Open-source Nashorn
Co-authored-by: Akhil Arora <akhil.arora@oracle.com>
Co-authored-by: Andreas Woess <andreas.woess@jku.at>
Co-authored-by: Attila Szegedi <attila.szegedi@oracle.com>
Co-authored-by: Hannes Wallnoefer <hannes.wallnoefer@oracle.com>
Co-authored-by: Henry Jen <henry.jen@oracle.com>
Co-authored-by: Marcus Lagergren <marcus.lagergren@oracle.com>
Co-authored-by: Pavel Semenov <pavel.semenov@oracle.com>
Co-authored-by: Pavel Stepanov <pavel.stepanov@oracle.com>
Co-authored-by: Petr Hejl <petr.hejl@oracle.com>
Co-authored-by: Petr Pisl <petr.pisl@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: attila, hannesw, lagergren, sundar
2012-12-21 16:36:24 -04:00

58 lines
1.0 KiB
Plaintext

aaaa bbbb cccc
aaaa bbbb
aaaa bbbb cccc dddd
aaaa bbbb cccc
aaaa bbbb undefined
aaaa bbbb cccc
aaaa bbbb cccc
true
aaaa bbbb cccc
aaaa
bbbb
cccc
function varFunc(a, b, c) {
print(a, b, c);
print(Object.getPrototypeOf(arguments) === Object.prototype);
print(arguments[0], arguments[1], arguments[2]);
for (var i in arguments) {
print(arguments[i]);
}
print(arguments.callee);
}
aaaa bbbb undefined
true
aaaa bbbb undefined
aaaa
bbbb
function varFunc(a, b, c) {
print(a, b, c);
print(Object.getPrototypeOf(arguments) === Object.prototype);
print(arguments[0], arguments[1], arguments[2]);
for (var i in arguments) {
print(arguments[i]);
}
print(arguments.callee);
}
aaaa bbbb cccc
true
aaaa bbbb cccc
aaaa
bbbb
cccc
dddd
function varFunc(a, b, c) {
print(a, b, c);
print(Object.getPrototypeOf(arguments) === Object.prototype);
print(arguments[0], arguments[1], arguments[2]);
for (var i in arguments) {
print(arguments[i]);
}
print(arguments.callee);
}