public class com.oracle.truffle.js.test.nashorn.JavaAdapterTest
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.oracle.truffle.js.test.nashorn.JavaAdapterTest
  super_class: java.lang.Object
{
  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.test.nashorn.JavaAdapterTest this
         0: .line 53
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // com.oracle.truffle.js.test.nashorn.JavaAdapterTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/js/test/nashorn/JavaAdapterTest;

  private static boolean testIntl(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=5, args_size=1
        start local 0 // java.lang.String sourceText
         0: .line 55
            aconst_null
            astore 1
            aconst_null
            astore 2
         1: iconst_0
            anewarray java.lang.String
            invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
            ldc "js.nashorn-compat"
            ldc "true"
            invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
            iconst_1
            invokevirtual org.graalvm.polyglot.Context$Builder.allowAllAccess:(Z)Lorg/graalvm/polyglot/Context$Builder;
            invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
            astore 3 /* context */
        start local 3 // org.graalvm.polyglot.Context context
         2: .line 56
            aload 3 /* context */
            ldc "js"
            aload 0 /* sourceText */
            ldc "javaadapter-test"
            invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            invokevirtual org.graalvm.polyglot.Source$Builder.buildLiteral:()Lorg/graalvm/polyglot/Source;
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            astore 4 /* result */
        start local 4 // org.graalvm.polyglot.Value result
         3: .line 57
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.isBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         4: .line 58
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
         5: .line 59
            aload 3 /* context */
            ifnull 6
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
         6: .line 58
      StackMap locals: java.lang.String java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context org.graalvm.polyglot.Value
      StackMap stack: int
            ireturn
        end local 4 // org.graalvm.polyglot.Value result
      StackMap locals: java.lang.String java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
      StackMap stack: java.lang.Throwable
         7: astore 1
         8: .line 59
            aload 3 /* context */
            ifnull 9
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        end local 3 // org.graalvm.polyglot.Context context
      StackMap locals:
      StackMap stack:
         9: aload 1
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        10: astore 2
            aload 1
            ifnonnull 11
            aload 2
            astore 1
            goto 12
      StackMap locals:
      StackMap stack:
        11: aload 1
            aload 2
            if_acmpeq 12
            aload 1
            aload 2
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        12: aload 1
            athrow
        end local 0 // java.lang.String sourceText
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   13     0  sourceText  Ljava/lang/String;
            2    9     3     context  Lorg/graalvm/polyglot/Context;
            3    7     4      result  Lorg/graalvm/polyglot/Value;
      Exception table:
        from    to  target  type
           2     5       7  any
           1     6      10  any
           7    10      10  any
    MethodParameters:
            Name  Flags
      sourceText  

  public void javaAdapterTest();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=2, args_size=1
        start local 0 // com.oracle.truffle.js.test.nashorn.JavaAdapterTest this
         0: .line 64
            ldc "load('nashorn:mozilla_compat.js');var executed = false; \nvar Runnable = Java.type('java.lang.Runnable'); \nvar runnable = new JavaAdapter(Runnable) { \n    run: function() { \n        executed = true; \n    } \n}; \nrunnable.run(); \nif (!(runnable instanceof Runnable)) { \n    throw new Error('Runnable expected'); \n} \nexecuted;"
            astore 1 /* sourceCode */
        start local 1 // java.lang.String sourceCode
         1: .line 78
            aload 1 /* sourceCode */
            invokestatic com.oracle.truffle.js.test.nashorn.JavaAdapterTest.testIntl:(Ljava/lang/String;)Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         2: .line 79
            return
        end local 1 // java.lang.String sourceCode
        end local 0 // com.oracle.truffle.js.test.nashorn.JavaAdapterTest this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    3     0        this  Lcom/oracle/truffle/js/test/nashorn/JavaAdapterTest;
            1    3     1  sourceCode  Ljava/lang/String;
    RuntimeVisibleAnnotations: 
      org.junit.Test()
}
SourceFile: "JavaAdapterTest.java"
InnerClasses:
  public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context
  public Builder = org.graalvm.polyglot.Source$Builder of org.graalvm.polyglot.Source