Search in sources :

Example 6 with FunctionEnvironmentRecord

use of com.github.anba.es6draft.runtime.FunctionEnvironmentRecord in project es6draft by anba.

the class ScriptRuntime method deleteSuperProperty.

/**
     * 12.3.5 The super Keyword
     * <p>
     * 12.3.5.3 Runtime Semantics: MakeSuperPropertyReference(propertyKey, strict)
     * 
     * @param cx
     *            the execution context
     * @return no value
     */
public static boolean deleteSuperProperty(ExecutionContext cx) {
    /* steps 1-2 */
    FunctionEnvironmentRecord envRec = GetSuperEnvironmentRecord(cx);
    /* steps 3-4 */
    GetSuperThis(envRec, cx);
    /* steps 5-7 */
    GetSuperBase(envRec, cx);
    /* 12.5.4.2, step 5.a */
    throw newReferenceError(cx, Messages.Key.SuperDelete);
}
Also used : FunctionEnvironmentRecord(com.github.anba.es6draft.runtime.FunctionEnvironmentRecord)

Aggregations

FunctionEnvironmentRecord (com.github.anba.es6draft.runtime.FunctionEnvironmentRecord)6 DeclarativeEnvironmentRecord (com.github.anba.es6draft.runtime.DeclarativeEnvironmentRecord)3 CompiledObject (com.github.anba.es6draft.compiler.CompiledObject)2 EnvironmentRecord (com.github.anba.es6draft.runtime.EnvironmentRecord)2 GlobalEnvironmentRecord (com.github.anba.es6draft.runtime.GlobalEnvironmentRecord)2 ModuleEnvironmentRecord (com.github.anba.es6draft.runtime.ModuleEnvironmentRecord)2 ObjectEnvironmentRecord (com.github.anba.es6draft.runtime.ObjectEnvironmentRecord)2 TypedArrayObject (com.github.anba.es6draft.runtime.objects.binary.TypedArrayObject)2 GeneratorObject (com.github.anba.es6draft.runtime.objects.iteration.GeneratorObject)2 FunctionScope (com.github.anba.es6draft.ast.scope.FunctionScope)1 Name (com.github.anba.es6draft.ast.scope.Name)1 FunctionName (com.github.anba.es6draft.compiler.CodeGenerator.FunctionName)1 MethodName (com.github.anba.es6draft.compiler.assembler.MethodName)1 ExecutionContext (com.github.anba.es6draft.runtime.ExecutionContext)1 LexicalEnvironment (com.github.anba.es6draft.runtime.LexicalEnvironment)1 Undefined (com.github.anba.es6draft.runtime.types.Undefined)1 ArgumentsObject (com.github.anba.es6draft.runtime.types.builtins.ArgumentsObject)1 FunctionObject (com.github.anba.es6draft.runtime.types.builtins.FunctionObject)1 ArrayDeque (java.util.ArrayDeque)1 HashSet (java.util.HashSet)1