org.mozilla.javascript

Class NativeGlobal

public class NativeGlobal extends Object implements Serializable, IdFunctionCall

This class implements the global native object (function and value properties only). See ECMA 15.1.[12].

Author: Mike Shaver

Method Summary
static EcmaErrorconstructError(Context cx, String error, String message, Scriptable scope)
static EcmaErrorconstructError(Context cx, String error, String message, Scriptable scope, String sourceName, int lineNumber, int columnNumber, String lineSource)
ObjectexecIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
static voidinit(Context cx, Scriptable scope, boolean sealed)

Method Detail

constructError

public static EcmaError constructError(Context cx, String error, String message, Scriptable scope)

Deprecated: Use {@link ScriptRuntime#constructError(String,String)} instead.

constructError

public static EcmaError constructError(Context cx, String error, String message, Scriptable scope, String sourceName, int lineNumber, int columnNumber, String lineSource)

Deprecated: Use {@link ScriptRuntime#constructError(String,String,String,int,int,String)} instead.

execIdCall

public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)

init

public static void init(Context cx, Scriptable scope, boolean sealed)