package com.tencent.mm.d.a;

import com.eclipsesource.v8.V8Context;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;

class l$11 implements Runnable {
    final /* synthetic */ l chT;

    l$11(l lVar) {
        this.chT = lVar;
    }

    public final void run() {
        AppMethodBeat.i(113845);
        ab.i("MicroMsg.J2V8.V8ContextEngine", "destroy");
        for (int i = 0; i < this.chT.chQ.size(); i++) {
            ((n) this.chT.chQ.get(i)).cleanup();
        }
        V8Context CB = this.chT.CB();
        if (CB != null) {
            try {
                CB.release();
                AppMethodBeat.o(113845);
                return;
            } catch (Exception e) {
                ab.e("MicroMsg.J2V8.V8ContextEngine", "destroy :%s", new Object[]{e});
            }
        }
        AppMethodBeat.o(113845);
    }
}
