Skip to content

Commit

Permalink
For the purposes of Function.prototype.call, treated JS Null and Unde…
Browse files Browse the repository at this point in the history
…fined objects as tho they were of type BoxedValue.

This fixes #38.

Signed-off-by: John Gietzen <otac0n@gietzen.us>
  • Loading branch information
otac0n committed May 6, 2011
1 parent 3a2cbb6 commit a6ca007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/IronJS/Native.Function.fs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ module internal Function =

let skip = if args.Length = 0 then 0 else 1
let args = args |> Seq.skip skip |> Seq.toArray
let argsClr = args |> Array.map TC.ToClrObject
let argsClr = args |> Array.map (fun i -> if not i.IsNull && i.IsClr then TC.ToClrObject i else i :> obj)
let argTypes = argsClr |> Array.map TypeUtils.getType

let type' = argTypes $ DelegateUtils.getCallSiteDelegate
Expand Down

0 comments on commit a6ca007

Please sign in to comment.