2013-07-08  Sharath Kamath  <s.kamath@samsung.com>

        Program.build(device) passes a empty device array to OpenCL
        Issue #245

        As the WebCLProgram build(...) API takes a array of devices, sending a single device must throw a exception.
        Check the device parameter for isJSArray() and returning a error in case it does not.
        Also changes to samples to use [] to send a single device.

        Reviewed by Antonio.

        No new tests.

        * bindings/js/JSWebCLProgramCustom.cpp:
        (WebCore::JSWebCLProgram::build):