Search in sources :

Example 1 with CompiledScript

use of com.github.anba.es6draft.compiler.CompiledScript in project es6draft by anba.

the class ScriptRuntime method setLegacyBlockFunction.

/**
     * 18.2.1.2 Runtime Semantics: EvalDeclarationInstantiation( body, varEnv, lexEnv, strict)
     * 
     * @param cx
     *            the execution context
     * @param functionId
     *            the function id
     */
public static void setLegacyBlockFunction(ExecutionContext cx, int functionId) {
    Executable executable = cx.getCurrentExecutable();
    ((CompiledScript) executable).setLegacyBlockFunction(functionId);
}
Also used : CompiledScript(com.github.anba.es6draft.compiler.CompiledScript) Executable(com.github.anba.es6draft.Executable)

Aggregations

Executable (com.github.anba.es6draft.Executable)1 CompiledScript (com.github.anba.es6draft.compiler.CompiledScript)1