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

  public void testRealmBuiltinNotShared();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=5, args_size=1
        start local 0 // com.oracle.truffle.js.test.builtins.RealmBuiltinTest this
         0: .line 57
            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.v8-realm-builtin"
            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 58
            aload 3 /* context */
            ldc "js"
            ldc "const id = Realm.create(); Realm.eval(id, 'Realm') === Realm"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            astore 4 /* result */
        start local 4 // org.graalvm.polyglot.Value result
         3: .line 59
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.isBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         4: .line 60
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
            invokestatic org.junit.Assert.assertFalse:(Z)V
        end local 4 // org.graalvm.polyglot.Value result
         5: .line 61
            aload 3 /* context */
            ifnull 11
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
            goto 11
      StackMap locals: com.oracle.truffle.js.test.builtins.RealmBuiltinTest java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
      StackMap stack: java.lang.Throwable
         6: astore 1
            aload 3 /* context */
            ifnull 7
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        end local 3 // org.graalvm.polyglot.Context context
      StackMap locals:
      StackMap stack:
         7: aload 1
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
         8: astore 2
            aload 1
            ifnonnull 9
            aload 2
            astore 1
            goto 10
      StackMap locals:
      StackMap stack:
         9: aload 1
            aload 2
            if_acmpeq 10
            aload 1
            aload 2
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        10: aload 1
            athrow
        11: .line 62
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.oracle.truffle.js.test.builtins.RealmBuiltinTest this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   12     0     this  Lcom/oracle/truffle/js/test/builtins/RealmBuiltinTest;
            2    7     3  context  Lorg/graalvm/polyglot/Context;
            3    5     4   result  Lorg/graalvm/polyglot/Value;
      Exception table:
        from    to  target  type
           2     5       6  any
           1     8       8  any
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testRealmCurrent1();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=5, args_size=1
        start local 0 // com.oracle.truffle.js.test.builtins.RealmBuiltinTest this
         0: .line 66
            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.v8-realm-builtin"
            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 67
            aload 3 /* context */
            ldc "js"
            ldc "const id = Realm.create(); Realm.eval(id, 'Realm.current()') === id"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            astore 4 /* result */
        start local 4 // org.graalvm.polyglot.Value result
         3: .line 68
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.isBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         4: .line 69
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
        end local 4 // org.graalvm.polyglot.Value result
         5: .line 70
            aload 3 /* context */
            ifnull 11
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
            goto 11
      StackMap locals: com.oracle.truffle.js.test.builtins.RealmBuiltinTest java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
      StackMap stack: java.lang.Throwable
         6: astore 1
            aload 3 /* context */
            ifnull 7
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        end local 3 // org.graalvm.polyglot.Context context
      StackMap locals:
      StackMap stack:
         7: aload 1
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
         8: astore 2
            aload 1
            ifnonnull 9
            aload 2
            astore 1
            goto 10
      StackMap locals:
      StackMap stack:
         9: aload 1
            aload 2
            if_acmpeq 10
            aload 1
            aload 2
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        10: aload 1
            athrow
        11: .line 71
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.oracle.truffle.js.test.builtins.RealmBuiltinTest this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   12     0     this  Lcom/oracle/truffle/js/test/builtins/RealmBuiltinTest;
            2    7     3  context  Lorg/graalvm/polyglot/Context;
            3    5     4   result  Lorg/graalvm/polyglot/Value;
      Exception table:
        from    to  target  type
           2     5       6  any
           1     8       8  any
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testRealmCurrent2();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=5, args_size=1
        start local 0 // com.oracle.truffle.js.test.builtins.RealmBuiltinTest this
         0: .line 75
            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.v8-realm-builtin"
            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 76
            aload 3 /* context */
            ldc "js"
            ldc "const id = Realm.create(); Realm.eval(id, 'Realm.current')() === 0"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            astore 4 /* result */
        start local 4 // org.graalvm.polyglot.Value result
         3: .line 77
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.isBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         4: .line 78
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
        end local 4 // org.graalvm.polyglot.Value result
         5: .line 79
            aload 3 /* context */
            ifnull 11
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
            goto 11
      StackMap locals: com.oracle.truffle.js.test.builtins.RealmBuiltinTest java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
      StackMap stack: java.lang.Throwable
         6: astore 1
            aload 3 /* context */
            ifnull 7
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        end local 3 // org.graalvm.polyglot.Context context
      StackMap locals:
      StackMap stack:
         7: aload 1
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
         8: astore 2
            aload 1
            ifnonnull 9
            aload 2
            astore 1
            goto 10
      StackMap locals:
      StackMap stack:
         9: aload 1
            aload 2
            if_acmpeq 10
            aload 1
            aload 2
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        10: aload 1
            athrow
        11: .line 80
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.oracle.truffle.js.test.builtins.RealmBuiltinTest this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   12     0     this  Lcom/oracle/truffle/js/test/builtins/RealmBuiltinTest;
            2    7     3  context  Lorg/graalvm/polyglot/Context;
            3    5     4   result  Lorg/graalvm/polyglot/Value;
      Exception table:
        from    to  target  type
           2     5       6  any
           1     8       8  any
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testRealmShared();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=5, args_size=1
        start local 0 // com.oracle.truffle.js.test.builtins.RealmBuiltinTest this
         0: .line 84
            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.v8-realm-builtin"
            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 85
            aload 3 /* context */
            ldc "js"
            ldc "Realm.shared === undefined"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            astore 4 /* result */
        start local 4 // org.graalvm.polyglot.Value result
         3: .line 86
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.isBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         4: .line 87
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         5: .line 88
            aload 3 /* context */
            ldc "js"
            ldc "const id = Realm.create(); Realm.shared = 42; Realm.eval(id, 'Realm.shared')"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            astore 4 /* result */
         6: .line 89
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.isNumber:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         7: .line 90
            ldc 42
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.asInt:()I
            i2l
            invokestatic org.junit.Assert.assertEquals:(JJ)V
         8: .line 91
            aload 3 /* context */
            ldc "js"
            ldc "Realm.eval(id, 'Realm.shared = 211'); Realm.shared"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            astore 4 /* result */
         9: .line 92
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.isNumber:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
        10: .line 93
            ldc 211
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.asInt:()I
            i2l
            invokestatic org.junit.Assert.assertEquals:(JJ)V
        end local 4 // org.graalvm.polyglot.Value result
        11: .line 94
            aload 3 /* context */
            ifnull 17
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
            goto 17
      StackMap locals: com.oracle.truffle.js.test.builtins.RealmBuiltinTest 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 95
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.oracle.truffle.js.test.builtins.RealmBuiltinTest this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   18     0     this  Lcom/oracle/truffle/js/test/builtins/RealmBuiltinTest;
            2   13     3  context  Lorg/graalvm/polyglot/Context;
            3   11     4   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 testInvalidRealmIndex();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=5, args_size=1
        start local 0 // com.oracle.truffle.js.test.builtins.RealmBuiltinTest this
         0: .line 99
            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.v8-realm-builtin"
            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 100
            aload 3 /* context */
            ldc "js"
            ldc "let passed = false; try { Realm.eval(1, '6*7'); } catch (e) { passed = e instanceof TypeError; } passed"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            astore 4 /* result */
        start local 4 // org.graalvm.polyglot.Value result
         3: .line 101
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.isBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         4: .line 102
            aload 4 /* result */
            invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
        end local 4 // org.graalvm.polyglot.Value result
         5: .line 103
            aload 3 /* context */
            ifnull 11
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
            goto 11
      StackMap locals: com.oracle.truffle.js.test.builtins.RealmBuiltinTest java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
      StackMap stack: java.lang.Throwable
         6: astore 1
            aload 3 /* context */
            ifnull 7
            aload 3 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        end local 3 // org.graalvm.polyglot.Context context
      StackMap locals:
      StackMap stack:
         7: aload 1
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
         8: astore 2
            aload 1
            ifnonnull 9
            aload 2
            astore 1
            goto 10
      StackMap locals:
      StackMap stack:
         9: aload 1
            aload 2
            if_acmpeq 10
            aload 1
            aload 2
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        10: aload 1
            athrow
        11: .line 104
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.oracle.truffle.js.test.builtins.RealmBuiltinTest this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   12     0     this  Lcom/oracle/truffle/js/test/builtins/RealmBuiltinTest;
            2    7     3  context  Lorg/graalvm/polyglot/Context;
            3    5     4   result  Lorg/graalvm/polyglot/Value;
      Exception table:
        from    to  target  type
           2     5       6  any
           1     8       8  any
    RuntimeVisibleAnnotations: 
      org.junit.Test()
}
SourceFile: "RealmBuiltinTest.java"
InnerClasses:
  public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context