[webkit-help] Which SYNTAX_ERR should be thrown from WorkerContext::importScripts()

Julien Chaffraix julien.chaffraix at gmail.com
Wed Oct 12 09:44:17 PDT 2011


> In WebCore::WorkerContext::importScripts() method,
> it will throw an exception code of SYNTAX_ERR from the 1st for loop.
>
> When ENABLE_FILE_SYSTEM=0,
> I met the compile error as like 'SYNTAX_ERR is not defined'.
> Can I include dom/ExceptionCode.h instead of the header files relating
> to FILE_SYSTEM API ?

This is the right solution. Care to file a bug and attach a patch to
solve the problem for everyone?

> OR, should it be set to 1 when compile WorkerContext.cpp ?

No, Workers and Filesystem API are orthogonal.

Thanks,
Julien


More information about the webkit-help mailing list