public class com.oracle.truffle.js.test.nashorn.NashornCompatibilityModeTests
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.test.nashorn.NashornCompatibilityModeTests
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 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/test/nashorn/NashornCompatibilityModeTests;
private static boolean testIntl(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
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"
2: iload 1
ifeq 3
ldc "true"
goto 4
StackMap locals: java.lang.String int java.lang.Throwable java.lang.Throwable
StackMap stack: org.graalvm.polyglot.Context$Builder java.lang.String
3: ldc "false"
4: StackMap locals: java.lang.String int java.lang.Throwable java.lang.Throwable
StackMap stack: org.graalvm.polyglot.Context$Builder java.lang.String java.lang.String
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
5: invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
6: astore 4
start local 4 7: aload 4
ldc "js"
aload 0
ldc "nashorn-compat-mode-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 5
start local 5 8: aload 5
invokevirtual org.graalvm.polyglot.Value.isBoolean:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
9: aload 5
invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
10: aload 4
ifnull 11
aload 4
invokevirtual org.graalvm.polyglot.Context.close:()V
11: StackMap locals: java.lang.String int java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context org.graalvm.polyglot.Value
StackMap stack: int
ireturn
end local 5 StackMap locals: java.lang.String int java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
12: astore 2
13: aload 4
ifnull 14
aload 4
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 4 StackMap locals:
StackMap stack:
14: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 3
aload 2
ifnonnull 16
aload 3
astore 2
goto 17
StackMap locals:
StackMap stack:
16: aload 2
aload 3
if_acmpeq 17
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
17: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 sourceText Ljava/lang/String;
0 18 1 nashornCompatMode Z
7 14 4 context Lorg/graalvm/polyglot/Context;
8 12 5 result Lorg/graalvm/polyglot/Value;
Exception table:
from to target type
7 10 12 any
1 11 15 any
12 15 15 any
MethodParameters:
Name Flags
sourceText
nashornCompatMode
public void testTypedArrayJoinNotAvailable();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "var a = new Int8Array(8); a.join()==='0,0,0,0,0,0,0,0';"
iconst_0
invokestatic com.oracle.truffle.js.test.nashorn.NashornCompatibilityModeTests.testIntl:(Ljava/lang/String;Z)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
1: ldc "function t() { var a = new Int8Array(8); try { a.join(); return false; } catch (e) { return e.message.indexOf('join is not a function') >= 0; }; }; t();"
2: iconst_1
3: invokestatic com.oracle.truffle.js.test.nashorn.NashornCompatibilityModeTests.testIntl:(Ljava/lang/String;Z)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/test/nashorn/NashornCompatibilityModeTests;
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "NashornCompatibilityModeTests.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