public class com.oracle.truffle.js.test.builtins.LoadWithCustomFsTest extends com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.test.builtins.LoadWithCustomFsTest
super_class: com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest
{
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.LoadWithCustomFsTest this
0: .line 56
aload 0 /* this */
invokespecial com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest.<init>:()V
return
end local 0 // com.oracle.truffle.js.test.builtins.LoadWithCustomFsTest this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/test/builtins/LoadWithCustomFsTest;
public void testLoadHttp();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=1
start local 0 // com.oracle.truffle.js.test.builtins.LoadWithCustomFsTest this
0: .line 63
new com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest$TestFS
dup
ldc "https://abc:8443/xyz.js"
ldc "foo = 41;"
invokespecial com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest$TestFS.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 1 /* fs */
start local 1 // com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest$TestFS fs
1: .line 64
aconst_null
astore 2
aconst_null
astore 3
2: iconst_0
anewarray java.lang.String
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
getstatic org.graalvm.polyglot.PolyglotAccess.ALL:Lorg/graalvm/polyglot/PolyglotAccess;
invokevirtual org.graalvm.polyglot.Context$Builder.allowPolyglotAccess:(Lorg/graalvm/polyglot/PolyglotAccess;)Lorg/graalvm/polyglot/Context$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.Context$Builder.allowIO:(Z)Lorg/graalvm/polyglot/Context$Builder;
aload 1 /* fs */
invokevirtual org.graalvm.polyglot.Context$Builder.fileSystem:(Lorg/graalvm/polyglot/io/FileSystem;)Lorg/graalvm/polyglot/Context$Builder;
ldc "js.load-from-url"
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 4 /* cx */
start local 4 // org.graalvm.polyglot.Context cx
3: .line 65
aload 4 /* cx */
ldc "js"
ldc "load('https://abc:8443/xyz.js'); foo;"
ldc "test.js"
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.build:()Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 5 /* v */
start local 5 // org.graalvm.polyglot.Value v
4: .line 67
ldc 41
aload 5 /* v */
invokevirtual org.graalvm.polyglot.Value.asInt:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
5: .line 68
aload 1 /* fs */
getfield com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest$TestFS.uriSpecifiers:Ljava/util/Set;
ldc "https://abc:8443/xyz.js"
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
6: .line 69
aload 1 /* fs */
getfield com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest$TestFS.stringSpecifiers:Ljava/util/Set;
ldc "https://abc:8443/xyz.js"
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertFalse:(Z)V
end local 5 // org.graalvm.polyglot.Value v
7: .line 70
aload 4 /* cx */
ifnull 13
aload 4 /* cx */
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 13
StackMap locals: com.oracle.truffle.js.test.builtins.LoadWithCustomFsTest com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest$TestFS java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
8: astore 2
aload 4 /* cx */
ifnull 9
aload 4 /* cx */
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 4 // org.graalvm.polyglot.Context cx
StackMap locals:
StackMap stack:
9: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 3
aload 2
ifnonnull 11
aload 3
astore 2
goto 12
StackMap locals:
StackMap stack:
11: aload 2
aload 3
if_acmpeq 12
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 2
athrow
13: .line 71
StackMap locals:
StackMap stack:
return
end local 1 // com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest$TestFS fs
end local 0 // com.oracle.truffle.js.test.builtins.LoadWithCustomFsTest this
LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/oracle/truffle/js/test/builtins/LoadWithCustomFsTest;
1 14 1 fs Lcom/oracle/truffle/js/test/builtins/ImportWithCustomFsTest$TestFS;
3 9 4 cx Lorg/graalvm/polyglot/Context;
4 7 5 v Lorg/graalvm/polyglot/Value;
Exception table:
from to target type
3 7 8 any
2 10 10 any
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "LoadWithCustomFsTest.java"
InnerClasses:
protected TestFS = com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest$TestFS of com.oracle.truffle.js.test.builtins.ImportWithCustomFsTest
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