/**
 * Copyright (c) 2012-2013 André Bargull
 * Alle Rechte vorbehalten / All Rights Reserved.  Use is subject to license terms.
 *
 * <https://github.com/anba/es6draft>
 */
package com.github.anba.es6draft.runtime.objects;

import com.github.anba.es6draft.runtime.Realm;
import com.github.anba.es6draft.runtime.types.BuiltinBrand;
import com.github.anba.es6draft.runtime.types.Intrinsics;
import com.github.anba.es6draft.runtime.types.Scriptable;
import com.github.anba.es6draft.runtime.types.builtins.OrdinaryObject;

/**
 * <h1>15 Standard Built-in ECMAScript Objects</h1><br>
 * <h2>15.6 Boolean Objects</h2>
 * <ul>
 * <li>15.6.5 Properties of Boolean Instances
 * </ul>
 */
public class BooleanObject extends OrdinaryObject implements Scriptable {
    /**
     * [[BooleanData]]
     */
    private boolean booleanData;

    private boolean initialised = false;

    public BooleanObject(Realm realm) {
        super(realm);
    }

    public boolean isInitialised() {
        return initialised;
    }

    /**
     * [[BooleanData]]
     */
    public boolean getBooleanData() {
        return booleanData;
    }

    /**
     * [[BooleanData]]
     */
    public void setBooleanData(boolean booleanData) {
        assert !this.initialised : "NumberObject already initialised";
        this.initialised = true;
        this.booleanData = booleanData;
    }

    /**
     * [[BuiltinBrand]]
     */
    @Override
    public BuiltinBrand getBuiltinBrand() {
        return BuiltinBrand.BuiltinBooleanWrapper;
    }

    /**
     * Custom helper function
     */
    public static BooleanObject BooleanCreate(Realm realm, boolean booleanData) {
        BooleanObject obj = new BooleanObject(realm);
        obj.setPrototype(realm.getIntrinsic(Intrinsics.BooleanPrototype));
        obj.setBooleanData(booleanData);
        return obj;
    }
}

@@ -1248,14 +1248,15 @@
  : %22
-Number
+Boolean
 Obje

Fix assertion message