/openjdk10/nashorn/test/script/basic/ |
H A D | JDK-8007456.js | 33 print(arguments.length); 34 print(arguments[0]); 35 print(arguments[1]);
|
H A D | commandargs.js | 25 * Simple test to check command line arguments for scripts. 33 for (i in arguments) { 34 print(arguments[i]);
|
H A D | JDK-8024846.js | 25 * JDK-8024846: keep separate internal arguments variable 30 function f() { print(arguments); } 33 var arguments = obj; 34 for (var i in arguments) {
|
H A D | NASHORN-148.js | 25 * NASHORN-148 : arguments element deletion/resurrection does not work as expected 34 print("func.arguments[0] = " + arguments[0]); 36 arguments[0] = "world"; 39 print("func.arguments[0] = " + arguments[0]); 43 print("func.arguments[0] = " + arguments[0]); 45 // delete arguments[0] 46 delete arguments[ [all...] |
H A D | JDK-8013325.js | 25 * JDK-8013325: function named 'arguments' should still access arguments object within itself. 26 * Its parent should however see the function and not an arguments object. 33 // x doesn't see an arguments object as it has a nested function with that name 35 arguments("a", "b", "c"); 37 function arguments(x, y, z) { 38 // The function 'arguments' OTOH can't see itself; if it uses the 39 // identifier 'arguments', it'll see its own arguments object. 40 print(arguments) [all...] |
H A D | JDK-8012191.js | 33 print("obj.__noSuchProperty__ invoked for " + arguments[0]); 42 print(arguments[0]); 43 print(arguments[1]); 48 print(arguments[0]);
|
H A D | JDK-8184720.js | 26 * when calling apply() and passing the arguments object 34 (function(){}).apply(null, arguments);
|
H A D | JDK-8081156.js | 25 * JDK-8081156: jjs "nashorn.args" system property is not effective when script arguments are passed 44 Assert.assertTrue(arguments.length == 2); 45 Assert.assertTrue(arguments[0] == "foo"); 46 Assert.assertTrue(arguments[1] == "bar");
|
H A D | NASHORN-450.js | 25 * NASHORN-450 : User setter for arguments element does not work when an element in question was deleted earlier 33 delete arguments[0]; 35 Object.defineProperty(arguments, "0", 41 arguments[0] = 33; 44 fail("setter not called for arguments[0]");
|
H A D | varargs.js | 32 print(Object.getPrototypeOf(arguments) === Object.prototype); 33 print(arguments[0], arguments[1], arguments[2]); 35 for (var i in arguments) { 36 print(arguments[i]); 39 print(arguments.callee);
|
H A D | NASHORN-178.js | 25 * NASHORN-178 : arguments.length is incorrect for arguments of function called using apply() 32 print(arguments.length); 33 for (var i=0; i < arguments.length; i++) { 34 print(' '+i+': '+arguments[i]); 40 for(var i=0; i < arguments.length; i++) { 41 args[i] = arguments[i];
|
H A D | args.js | 25 * Messing with arguments. 35 function myArgsfunc(arguments) { 36 return arguments[0]; 40 return arguments[0];
|
H A D | NASHORN-261.js | 59 if (arguments.length != 1) { 60 fail("arguments.length !== 1, it is " + arguments.length); 61 for (i in arguments) { print(arguments[i]); } 73 for (i in arguments) { 74 print(arguments[i]);
|
H A D | NASHORN-21.js | 33 delete arguments[0]; 34 if (arguments[0] !== undefined) { 35 print("ERROR: arguments[0] should be undefined"); 37 print("yes, arguments[0] is undefined");
|
H A D | NASHORN-223.js | 25 * NASHORN-223 : Function.prototype.bind fails when the function uses "arguments" object 33 for (i in arguments) res += arguments[i];
|
H A D | NASHORN-300.js | 33 var encoding = arguments[3]; 40 print(arguments);
|
H A D | anonrecur.js | 25 * Call anonymous function recursively using arguments.callee. 32 return x == 0? 1 : x*arguments.callee(x-1);
|
H A D | NASHORN-185.js | 33 return Array.prototype.shift.apply(arguments);
|
H A D | JDK-8131340.js | 35 return arguments;
|
H A D | JDK-8007460.js | 33 print(arguments[0]) 38 print(arguments[0])
|
H A D | JDK-8022731.js | 34 Object.defineProperty(arguments, "1", {get: function() { return "get" }}); 35 return arguments[0]; 39 Object.defineProperty(arguments, "0", {get: function() { return "get" }}); 44 Object.defineProperty(arguments, "0", {value: "value"}); 45 delete arguments[0]; 50 arguments[1] = "arg1"; 56 return arguments[1]; 60 Object.defineProperty(arguments, "0", {value: "value"}); 61 arguments[0] = "new"; 66 Object.defineProperty(arguments, " [all...] |
/openjdk10/jdk/test/tools/jjs/ |
H A D | args.js | 5 if (typeof(arguments) == 'undefined') { 6 throw new Error("arguments expected"); 9 if (arguments.length != 2) { 10 throw new Error("2 arguments are expected here"); 13 if (arguments[0] != 'hello') { 17 if (arguments[1] != 'world') {
|
/openjdk10/jdk/src/jdk.internal.opt/share/classes/jdk/internal/joptsimple/ |
H A D | ArgumentList.java | 61 * <p>Wrapper for an array of command line arguments.</p> 66 private final String[] arguments; field in class:ArgumentList 69 ArgumentList( String... arguments ) { 70 this.arguments = arguments.clone(); 74 return currentIndex < arguments.length; 78 return arguments[ currentIndex++ ]; 82 return arguments[ currentIndex ]; 86 if ( HYPHEN_CHAR != arguments[ currentIndex ].charAt( 0 ) ) 87 arguments[ currentInde [all...] |
H A D | OptionParserState.java | 70 protected void handleArgument( OptionParser parser, ArgumentList arguments, OptionSet detectedOptions ) { 71 parser.handleNonOptionArgument( arguments.next(), arguments, detectedOptions ); 79 protected void handleArgument( OptionParser parser, ArgumentList arguments, OptionSet detectedOptions ) { 80 String candidate = arguments.next(); 86 parser.handleLongOptionToken( candidate, arguments, detectedOptions ); 89 parser.handleShortOptionToken( candidate, arguments, detectedOptions ); 100 parser.handleNonOptionArgument( candidate, arguments, detectedOptions ); 105 protected abstract void handleArgument( OptionParser parser, ArgumentList arguments, OptionSet detectedOptions ); argument
|
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ |
H A D | FunctionScope.java | 33 * The scope is also responsible for handling the var arg 'arguments' object, 41 /** Area to store scope arguments. (public for access from scripts.) */ 42 public final ScriptObject arguments; field in class:FunctionScope 49 * @param arguments arguments 51 public FunctionScope(final PropertyMap map, final ScriptObject callerScope, final ScriptObject arguments) { argument 53 this.arguments = arguments; 64 this.arguments = null; 76 this.arguments [all...] |