public class com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest
  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.interop.ForeignObjectPrototypeTest this
         0: .line 61
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/js/test/interop/ForeignObjectPrototypeTest;

  public void testProxyArray();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=6, args_size=1
        start local 0 // com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest this
         0: .line 65
            aconst_null
            astore 1
            aconst_null
            astore 2
         1: iconst_1
            anewarray java.lang.String
            dup
            iconst_0
            ldc "js"
            aastore
            invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
            ldc "js.foreign-object-prototype"
            ldc "true"
            invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)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 66
            iconst_4
            anewarray java.lang.Object
            dup
            iconst_0
            ldc "fun"
            aastore
            dup
            iconst_1
            ldc "with"
            aastore
            dup
            iconst_2
            ldc "proxy"
            aastore
            dup
            iconst_3
            ldc "array"
            aastore
            invokestatic org.graalvm.polyglot.proxy.ProxyArray.fromArray:([Ljava/lang/Object;)Lorg/graalvm/polyglot/proxy/ProxyArray;
            astore 4 /* array */
        start local 4 // org.graalvm.polyglot.proxy.ProxyArray array
         3: .line 67
            aload 3 /* context */
            ldc "js"
            ldc "(array) => array.sort()"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* array */
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            astore 5 /* result */
        start local 5 // org.graalvm.polyglot.Value result
         4: iconst_4
            anewarray java.lang.String
            dup
            iconst_0
         5: .line 68
            ldc "array"
            aastore
            dup
            iconst_1
            ldc "fun"
            aastore
            dup
            iconst_2
            ldc "proxy"
            aastore
            dup
            iconst_3
            ldc "with"
            aastore
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            aload 5 /* result */
            ldc Ljava/util/List;
            invokevirtual org.graalvm.polyglot.Value.as:(Ljava/lang/Class;)Ljava/lang/Object;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
         6: .line 70
            bipush 9
            anewarray java.lang.Object
            dup
            iconst_0
            iconst_4
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            iconst_5
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_2
            bipush 6
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_3
            iconst_1
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_4
            iconst_2
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_5
            iconst_3
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            bipush 6
            bipush 7
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            bipush 7
            bipush 8
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            bipush 8
            bipush 9
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic org.graalvm.polyglot.proxy.ProxyArray.fromArray:([Ljava/lang/Object;)Lorg/graalvm/polyglot/proxy/ProxyArray;
            astore 4 /* array */
         7: .line 71
            aload 3 /* context */
            ldc "js"
            ldc "(array) => array.reduce((a,b) => a + b)"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* array */
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            astore 5 /* result */
         8: .line 72
            ldc 45
            aload 5 /* result */
            invokevirtual org.graalvm.polyglot.Value.asInt:()I
            i2l
            invokestatic org.junit.Assert.assertEquals:(JJ)V
        end local 5 // org.graalvm.polyglot.Value result
        end local 4 // org.graalvm.polyglot.proxy.ProxyArray array
         9: .line 73
            aload 3 /* context */
            ifnull 15
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
            goto 15
      StackMap locals: com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
      StackMap stack: java.lang.Throwable
        10: astore 1
            aload 3 /* context */
            ifnull 11
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        end local 3 // org.graalvm.polyglot.Context context
      StackMap locals:
      StackMap stack:
        11: aload 1
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        12: astore 2
            aload 1
            ifnonnull 13
            aload 2
            astore 1
            goto 14
      StackMap locals:
      StackMap stack:
        13: aload 1
            aload 2
            if_acmpeq 14
            aload 1
            aload 2
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        14: aload 1
            athrow
        15: .line 74
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   16     0     this  Lcom/oracle/truffle/js/test/interop/ForeignObjectPrototypeTest;
            2   11     3  context  Lorg/graalvm/polyglot/Context;
            3    9     4    array  Lorg/graalvm/polyglot/proxy/ProxyArray;
            4    9     5   result  Lorg/graalvm/polyglot/Value;
      Exception table:
        from    to  target  type
           2     9      10  any
           1    12      12  any
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testHostArray();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=6, args_size=1
        start local 0 // com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest this
         0: .line 78
            aconst_null
            astore 1
            aconst_null
            astore 2
         1: iconst_1
            anewarray java.lang.String
            dup
            iconst_0
            ldc "js"
            aastore
            invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
            ldc "js.foreign-object-prototype"
            ldc "true"
            invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
            getstatic org.graalvm.polyglot.HostAccess.ALL:Lorg/graalvm/polyglot/HostAccess;
            invokevirtual org.graalvm.polyglot.Context$Builder.allowHostAccess:(Lorg/graalvm/polyglot/HostAccess;)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 79
            aload 3 /* context */
            iconst_4
            anewarray java.lang.String
            dup
            iconst_0
            ldc "fun"
            aastore
            dup
            iconst_1
            ldc "with"
            aastore
            dup
            iconst_2
            ldc "proxy"
            aastore
            dup
            iconst_3
            ldc "array"
            aastore
            invokevirtual org.graalvm.polyglot.Context.asValue:(Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            astore 4 /* array */
        start local 4 // org.graalvm.polyglot.Value array
         3: .line 80
            aload 3 /* context */
            ldc "js"
            ldc "(array) => array.sort()"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* array */
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            astore 5 /* result */
        start local 5 // org.graalvm.polyglot.Value result
         4: iconst_4
            anewarray java.lang.String
            dup
            iconst_0
         5: .line 81
            ldc "array"
            aastore
            dup
            iconst_1
            ldc "fun"
            aastore
            dup
            iconst_2
            ldc "proxy"
            aastore
            dup
            iconst_3
            ldc "with"
            aastore
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            aload 5 /* result */
            ldc Ljava/util/List;
            invokevirtual org.graalvm.polyglot.Value.as:(Ljava/lang/Class;)Ljava/lang/Object;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
         6: .line 83
            aload 3 /* context */
            bipush 9
            newarray 10
            dup
            iconst_0
            iconst_4
            iastore
            dup
            iconst_1
            iconst_5
            iastore
            dup
            iconst_2
            bipush 6
            iastore
            dup
            iconst_3
            iconst_1
            iastore
            dup
            iconst_4
            iconst_2
            iastore
            dup
            iconst_5
            iconst_3
            iastore
            dup
            bipush 6
            bipush 7
            iastore
            dup
            bipush 7
            bipush 8
            iastore
            dup
            bipush 8
            bipush 9
            iastore
            invokevirtual org.graalvm.polyglot.Context.asValue:(Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            astore 4 /* array */
         7: .line 84
            aload 3 /* context */
            ldc "js"
            ldc "(array) => array.reduce((a,b) => a + b)"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* array */
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            astore 5 /* result */
         8: .line 85
            ldc 45
            aload 5 /* result */
            invokevirtual org.graalvm.polyglot.Value.asInt:()I
            i2l
            invokestatic org.junit.Assert.assertEquals:(JJ)V
         9: .line 86
            aload 3 /* context */
            ldc "js"
            ldc "(array) => array.sort()"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* array */
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            astore 5 /* result */
            bipush 9
            anewarray java.lang.Integer
            dup
            iconst_0
        10: .line 87
            iconst_1
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            iconst_2
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_2
            iconst_3
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_3
            iconst_4
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_4
            iconst_5
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_5
            bipush 6
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            bipush 6
            bipush 7
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            bipush 7
            bipush 8
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            bipush 8
            bipush 9
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            aload 5 /* result */
            ldc Ljava/util/List;
            invokevirtual org.graalvm.polyglot.Value.as:(Ljava/lang/Class;)Ljava/lang/Object;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        end local 5 // org.graalvm.polyglot.Value result
        end local 4 // org.graalvm.polyglot.Value array
        11: .line 88
            aload 3 /* context */
            ifnull 17
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
            goto 17
      StackMap locals: com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
      StackMap stack: java.lang.Throwable
        12: astore 1
            aload 3 /* context */
            ifnull 13
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        end local 3 // org.graalvm.polyglot.Context context
      StackMap locals:
      StackMap stack:
        13: aload 1
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        14: astore 2
            aload 1
            ifnonnull 15
            aload 2
            astore 1
            goto 16
      StackMap locals:
      StackMap stack:
        15: aload 1
            aload 2
            if_acmpeq 16
            aload 1
            aload 2
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        16: aload 1
            athrow
        17: .line 89
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   18     0     this  Lcom/oracle/truffle/js/test/interop/ForeignObjectPrototypeTest;
            2   13     3  context  Lorg/graalvm/polyglot/Context;
            3   11     4    array  Lorg/graalvm/polyglot/Value;
            4   11     5   result  Lorg/graalvm/polyglot/Value;
      Exception table:
        from    to  target  type
           2    11      12  any
           1    14      14  any
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testProxyExecutable();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=5, args_size=1
        start local 0 // com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest this
         0: .line 93
            aconst_null
            astore 1
            aconst_null
            astore 2
         1: iconst_1
            anewarray java.lang.String
            dup
            iconst_0
            ldc "js"
            aastore
            invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
            ldc "js.foreign-object-prototype"
            ldc "true"
            invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)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 94
            aload 3 /* context */
            ldc "js"
            invokevirtual org.graalvm.polyglot.Context.getBindings:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
            ldc "moo"
            invokedynamic execute()Lorg/graalvm/polyglot/proxy/ProxyExecutable;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  ([Lorg/graalvm/polyglot/Value;)Ljava/lang/Object;
                  com/oracle/truffle/js/test/interop/ForeignObjectPrototypeTest.lambda$0([Lorg/graalvm/polyglot/Value;)Ljava/lang/Object; (6)
                  ([Lorg/graalvm/polyglot/Value;)Ljava/lang/Object;
            invokevirtual org.graalvm.polyglot.Value.putMember:(Ljava/lang/String;Ljava/lang/Object;)V
         3: .line 104
            aload 3 /* context */
            ldc "js"
            ldc "(function(...args) { return moo.apply(null, args); })('foo', 123, true)"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            astore 4 /* value */
        start local 4 // org.graalvm.polyglot.Value value
         4: .line 105
            aload 4 /* value */
            invokevirtual org.graalvm.polyglot.Value.isString:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         5: .line 106
            ldc "hi"
            aload 4 /* value */
            invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        end local 4 // org.graalvm.polyglot.Value value
         6: .line 107
            aload 3 /* context */
            ifnull 12
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
            goto 12
      StackMap locals: com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
      StackMap stack: java.lang.Throwable
         7: astore 1
            aload 3 /* context */
            ifnull 8
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        end local 3 // org.graalvm.polyglot.Context context
      StackMap locals:
      StackMap stack:
         8: aload 1
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
         9: astore 2
            aload 1
            ifnonnull 10
            aload 2
            astore 1
            goto 11
      StackMap locals:
      StackMap stack:
        10: aload 1
            aload 2
            if_acmpeq 11
            aload 1
            aload 2
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        11: aload 1
            athrow
        12: .line 108
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   13     0     this  Lcom/oracle/truffle/js/test/interop/ForeignObjectPrototypeTest;
            2    8     3  context  Lorg/graalvm/polyglot/Context;
            4    6     4    value  Lorg/graalvm/polyglot/Value;
      Exception table:
        from    to  target  type
           2     6       7  any
           1     9       9  any
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testHostMethodStatic();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=6, args_size=1
        start local 0 // com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest this
         0: .line 112
            aconst_null
            astore 1
            aconst_null
            astore 2
         1: iconst_1
            anewarray java.lang.String
            dup
            iconst_0
            ldc "js"
            aastore
            invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
            ldc "js.foreign-object-prototype"
            ldc "true"
            invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
            getstatic org.graalvm.polyglot.HostAccess.ALL:Lorg/graalvm/polyglot/HostAccess;
            invokevirtual org.graalvm.polyglot.Context$Builder.allowHostAccess:(Lorg/graalvm/polyglot/HostAccess;)Lorg/graalvm/polyglot/Context$Builder;
            invokedynamic test()Ljava/util/function/Predicate;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)Z
                  com/oracle/truffle/js/test/interop/ForeignObjectPrototypeTest.lambda$1(Ljava/lang/String;)Z (6)
                  (Ljava/lang/String;)Z
            invokevirtual org.graalvm.polyglot.Context$Builder.allowHostClassLookup:(Ljava/util/function/Predicate;)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 113
            aload 3 /* context */
            ldc "js"
            ldc "Java.type('java.util.Arrays').asList"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            astore 4 /* method */
        start local 4 // org.graalvm.polyglot.Value method
         3: .line 114
            aload 4 /* method */
            invokevirtual org.graalvm.polyglot.Value.canExecute:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         4: .line 115
            aload 4 /* method */
            invokevirtual org.graalvm.polyglot.Value.hasMembers:()Z
            invokestatic org.junit.Assert.assertFalse:(Z)V
         5: .line 116
            aload 3 /* context */
            ldc "js"
            ldc "m => m.call(null, 0, 8, 1, 5)"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* method */
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            astore 5 /* result */
        start local 5 // org.graalvm.polyglot.Value result
         6: iconst_4
            anewarray java.lang.Integer
            dup
            iconst_0
         7: .line 117
            iconst_0
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            bipush 8
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_2
            iconst_1
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_3
            iconst_5
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            aload 5 /* result */
            ldc Ljava/util/List;
            invokevirtual org.graalvm.polyglot.Value.as:(Ljava/lang/Class;)Ljava/lang/Object;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
         8: .line 118
            aload 3 /* context */
            ldc "js"
            ldc "m => m.apply(null, [0, 8, 1, 5])"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* method */
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            astore 5 /* result */
            iconst_4
            anewarray java.lang.Integer
            dup
            iconst_0
         9: .line 119
            iconst_0
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            bipush 8
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_2
            iconst_1
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_3
            iconst_5
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            aload 5 /* result */
            ldc Ljava/util/List;
            invokevirtual org.graalvm.polyglot.Value.as:(Ljava/lang/Class;)Ljava/lang/Object;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        end local 5 // org.graalvm.polyglot.Value result
        end local 4 // org.graalvm.polyglot.Value method
        10: .line 120
            aload 3 /* context */
            ifnull 16
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
            goto 16
      StackMap locals: com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
      StackMap stack: java.lang.Throwable
        11: astore 1
            aload 3 /* context */
            ifnull 12
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        end local 3 // org.graalvm.polyglot.Context context
      StackMap locals:
      StackMap stack:
        12: aload 1
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        13: astore 2
            aload 1
            ifnonnull 14
            aload 2
            astore 1
            goto 15
      StackMap locals:
      StackMap stack:
        14: aload 1
            aload 2
            if_acmpeq 15
            aload 1
            aload 2
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        15: aload 1
            athrow
        16: .line 121
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.oracle.truffle.js.test.interop.ForeignObjectPrototypeTest this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   17     0     this  Lcom/oracle/truffle/js/test/interop/ForeignObjectPrototypeTest;
            2   12     3  context  Lorg/graalvm/polyglot/Context;
            3   10     4   method  Lorg/graalvm/polyglot/Value;
            6   10     5   result  Lorg/graalvm/polyglot/Value;
      Exception table:
        from    to  target  type
           2    10      11  any
           1    13      13  any
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  private static java.lang.Object lambda$0(org.graalvm.polyglot.Value[]);
    descriptor: ([Lorg/graalvm/polyglot/Value;)Ljava/lang/Object;
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // org.graalvm.polyglot.Value[] args
         0: .line 95
            ldc 3
            aload 0 /* args */
            arraylength
            i2l
            invokestatic org.junit.Assert.assertEquals:(JJ)V
         1: .line 96
            aload 0 /* args */
            iconst_0
            aaload
            invokevirtual org.graalvm.polyglot.Value.isString:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         2: .line 97
            aload 0 /* args */
            iconst_1
            aaload
            invokevirtual org.graalvm.polyglot.Value.isNumber:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         3: .line 98
            aload 0 /* args */
            iconst_2
            aaload
            invokevirtual org.graalvm.polyglot.Value.isBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         4: .line 99
            ldc "foo"
            aload 0 /* args */
            iconst_0
            aaload
            invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
         5: .line 100
            ldc 123
            aload 0 /* args */
            iconst_1
            aaload
            invokevirtual org.graalvm.polyglot.Value.asInt:()I
            i2l
            invokestatic org.junit.Assert.assertEquals:(JJ)V
         6: .line 101
            aload 0 /* args */
            iconst_2
            aaload
            invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         7: .line 102
            ldc "hi"
            areturn
        end local 0 // org.graalvm.polyglot.Value[] args
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  args  [Lorg/graalvm/polyglot/Value;

  private static boolean lambda$1(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // java.lang.String s
         0: .line 112
            iconst_1
            ireturn
        end local 0 // java.lang.String s
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0     s  Ljava/lang/String;
}
SourceFile: "ForeignObjectPrototypeTest.java"
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context