mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
9ae831b5d4
There are a few changes we make here: 1 - Having callers pass JS::CompileOptions directly. 2 - Removing aUndefined, which makes no sense and is unused by consumers. 3 - Making aScopeObject and aRetValue non-optional, via references. 3 - Adding an argument to optionally coerce the return value to a string. Coercing jsvals to strings is the reason we currently have two nearly-identical functions, EvaluateString and EvaluateStringWithValue, since the coercion can trigger arbitrary script and thus needs to be bracketed by all the junk that nsJSContext does. However, if callers can be guaranteed that the return value will be a bonafide string, then they can easily extract the string themselves if they so desire. This will allow us to combine the two functions. |
||
---|---|---|
.. | ||
android | ||
Makefile.in | ||
npapi.h | ||
npfunctions.h | ||
npruntime.h | ||
nptypes.h | ||
nsIHTTPHeaderListener.idl | ||
nsIPluginDocument.idl | ||
nsIPluginHost.idl | ||
nsIPluginInputStream.idl | ||
nsIPluginInstanceOwner.idl | ||
nsIPluginTag.idl | ||
nsIPluginTagInfo.idl | ||
nsJSNPRuntime.cpp | ||
nsJSNPRuntime.h | ||
nsNPAPIPlugin.cpp | ||
nsNPAPIPlugin.h | ||
nsNPAPIPluginInstance.cpp | ||
nsNPAPIPluginInstance.h | ||
nsNPAPIPluginStreamListener.cpp | ||
nsNPAPIPluginStreamListener.h | ||
nsPluginDirServiceProvider.cpp | ||
nsPluginDirServiceProvider.h | ||
nsPluginHost.cpp | ||
nsPluginHost.h | ||
nsPluginInstanceOwner.cpp | ||
nsPluginInstanceOwner.h | ||
nsPluginLogging.h | ||
nsPluginManifestLineReader.h | ||
nsPluginModule.cpp | ||
nsPluginNativeWindow.cpp | ||
nsPluginNativeWindow.h | ||
nsPluginNativeWindowGtk2.cpp | ||
nsPluginNativeWindowOS2.cpp | ||
nsPluginNativeWindowQt.cpp | ||
nsPluginNativeWindowWin.cpp | ||
nspluginroot.idl | ||
nsPluginSafety.h | ||
nsPluginsCID.h | ||
nsPluginsDir.h | ||
nsPluginsDirDarwin.cpp | ||
nsPluginsDirOS2.cpp | ||
nsPluginsDirUnix.cpp | ||
nsPluginsDirUtils.h | ||
nsPluginsDirWin.cpp | ||
nsPluginStreamListenerPeer.cpp | ||
nsPluginStreamListenerPeer.h | ||
nsPluginTags.cpp | ||
nsPluginTags.h | ||
PluginPRLibrary.cpp | ||
PluginPRLibrary.h |