Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -797,16 +797,9 @@ fun fixTitle(str: String): String {
}
}

/**
* Get rhino context in a safe way as it needs to be initialized on the main thread.
*
* Make sure you get the scope using: val scope: Scriptable = rhino.initSafeStandardObjects()
*
* Use like the following: rhino.evaluateString(scope, js, "JavaScript", 1, null)
**/
// Deprecate after next stable
/* @Deprecated(
message = "Use JsContext or evalJs instead.",
message = "Use newJsContext or evalJs instead.",
level = DeprecationLevel.WARNING,
) */
suspend fun getRhinoContext(): org.mozilla.javascript.Context {
Expand Down