mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
1724ed7409
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. |
||
---|---|---|
.. | ||
builtin | ||
crashtests | ||
src | ||
test | ||
Makefile.in |