RemObjects Software RemObjects Software

RemObjects Script [DEPRECATED]

Issue 131: No Arguments

Reported by Lloyd Kinsella, Nov 11, 2010

Another fun bug:

var f = function(a,b) {
  writeln(arguments);
};

f();

arguments should be an array of all arguments passed into the 
function or empty if non.

Also, I'll point out here that in JavaScript you can do this:

someotherfunction.call(scope,arguments);
someotherfunction.apply(scope,arguments);

And it will call them as if they were arguments and not an array.

Check MDC on this for more details -

https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/
Function/call

https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/
Function/apply

https://developer.mozilla.org/en/JavaScript/Reference/functions_and_f
unction_scope/arguments

Comment 1 by Carlo Kok, Feb 1, 2011

Status: Fixed
Owner: ck

Created: 2 years 6 months ago by Lloyd Kinsella

Updated: 2 years 3 months ago

Status: Fixed

Owner: Carlo Kok

Labels:
Priority:Medium
Type:Defect