I got linker errors when trying to use toJS in DumpRenderTree. Turns out that APICast.h uses functions from JSCJSValueInlines.h, but doesn't include it.
Created attachment 214665 [details] proposed patch
Comment on attachment 214665 [details] proposed patch r=me
Committed r157684.