the return types of JS_CompileScriptForPrincipals, JS_CompileScript,
JS_CompileFile, and JS_CompileFileHandle are all JSScript*. But in
the jsapi.h (the current version is 1.8.5) , they're all JSObject*.
Which one should we use?
Re: Inconsistency In Online Documentation: JSScript Vs JSObject
In particular, I'm wondering if the XDR API still application in
1.8.5. Because according to the informal sample found in this group,
we would call these XDR functions in the previous versions (pre-1.8.5)
to serialize a script to a disk file: