2014-04-08  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        enqueueNDRangeKernel doesn't support when pass null localWorkSize
        Issue #432

        Spotted by Anthony Liot (WebCL translator).

        Problem is in toNativeArray, which bails out
        if a JSValue that holds a null JSObject is passed.
        Fixed by relax it similarly to toRefPtrNativeArray.

        Upstream bug: https://bugs.webkit.org/show_bug.cgi?id=131240

        * bindings/js/JSDOMBinding.h:
        (WebCore::toNativeArray):