Searched refs:obj1 (Results 1 - 25 of 74) sorted by relevance

123

/openjdk10/nashorn/test/script/basic/
H A DNASHORN-120.js31 var obj1 = {
33 throw "inside obj1.toString";
44 "hello".split(obj1, obj2);
53 "hello".split(obj1, 10);
56 if (e !== "inside obj1.toString") {
57 fail('#4: Exception === "obj1.toString" got: '+e);
H A DNASHORN-382.js31 var obj1 = new JSAdapter() {};
32 if (!(obj1 instanceof JSAdapter)) {
33 fail("#1 !(obj1 instanceof JSAdapter)");
H A DJDK-8056978.js31 var obj1 = {
H A DNASHORN-288.js31 var obj1 = {};
32 obj1.foo = function() {
35 var obj2 = Object.create(obj1);
45 obj1.foo = 33;
H A DNASHORN-136.js31 var obj1 = {
33 print("obj1.valueOf");
38 print("obj1.toString");
43 print("obj1 is " + obj1);
44 print(obj1 + 10);
62 print(obj1 + obj2);
74 print(obj1 + obj3);
H A DJDK-8170594.js31 var obj1 = {x: "100"};
36 })(obj1, true)
37 Assert.assertTrue(obj1.x === 100)
H A DNASHORN-281.js44 var obj1 = {}
45 Object.preventExtensions(obj1);
48 func(obj1);
H A DNASHORN-63.js67 var obj1 = {};
68 var obj2 = obj1;
69 if (obj1 != obj2) {
H A Dnewnew.js41 var obj1 = new myObject();
45 for (i in obj1) print(i, obj1[i]);
H A Dgetter_callsite.js39 var obj1 = newObj(42);
42 printFoo(obj1);
H A DNASHORN-284.js31 var obj1 = { x : 44 };
33 var obj2 = Object.create(obj1);
34 // shadow obj1.x here
45 // the following should expose obj1.x on obj3
47 // now, it should print obj1.x
H A Dcalllink.js31 var obj1 = {
32 func: function() { print("obj1.func called"); }
63 var arr = [ obj1, obj2, obj3, obj4, obj5, obj6,
64 obj1, obj2, obj3, obj4, obj5, obj6 ];
H A DNASHORN-192.js59 set: function(obj1, obj2, obj3) {
60 this.val = obj1;
/openjdk10/nashorn/test/script/maptests/
H A Dproto.js39 var obj1 = Object.create(proto);
42 assertSameMap(obj1, obj2);
45 assertSameMap(obj1, obj2);
48 assertSameMap(obj1, obj2);
51 assertSameMap(obj1, obj2);
54 assertSameMap(obj1, obj2);
H A Dproperty_add.js34 var obj1 = new Foo();
37 assertSameMap(obj1, obj2);
43 addX(obj1, 3);
46 assertEqualWithoutTypeMap(obj1, obj2);
H A Dobject_create.js33 var obj1 = Object.create(Object.prototype);
35 assertSameMap(obj1, obj2);
38 obj1 = Object.create(proto);
40 assertSameMap(obj1, obj2);
H A Dgettersetter.js39 var obj1 = Foo();
42 assertSameMap(obj1, obj2, "Object literals before change");
45 assertSameMap(obj1, obj2);
48 assertSameMap(obj1, obj2);
H A Dproperty_delete.js36 var obj1 = new Foo();
39 assertSameMap(obj1, obj2);
45 deleteX(obj1);
48 assertEqualWithoutTypeMap(obj1, obj2);
H A Dmaputil.js28 function assertSameMap(obj1, obj2, msg) {
29 if (! Debug.identical(Debug.map(obj1), Debug.map(obj2))) {
30 fail(obj1.constructor + " instances don't share map " + Debug.diffPropertyMaps(Debug.map(obj1), Debug.map(obj2)));
34 function assertNotSameMap(obj1, obj2, msg) {
35 if (Debug.identical(Debug.map(obj1), Debug.map(obj2))) {
36 fail(obj1.constructor + " and " + obj2.constructor + " instances share map");
40 function assertEqualWithoutTypeMap(obj1, obj2, msg) {
41 if (!Debug.equalWithoutType(Debug.map(obj1), Debug.map(obj2))) {
42 fail(obj1
[all...]
/openjdk10/langtools/test/tools/javac/generics/
H A DGenericAnonCtor.java35 T1 obj1; field in class:A
38 obj1 = t1;
42 return (obj1 + " " + obj2).intern();
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/lang/
H A DObject_equals01.java36 final Object obj1 = new Object();
40 return obj1.equals(field);
42 return obj1.equals(obj2);
44 return obj1.equals(null);
46 return obj1.equals(obj1);
56 return obj2.equals(obj1);
H A DObject_hashCode02.java36 public static final Object obj1 = new Object(); field in class:Object_hashCode02
42 return obj1.hashCode();
/openjdk10/hotspot/test/runtime/SameObject/
H A DlibSameObject.c34 (JNIEnv *env, jobject obj1, jobject obj2) {
33 Java_SameObject_createWeakRef(JNIEnv *env, jobject obj1, jobject obj2) argument
/openjdk10/jdk/test/java/io/Externalizable/definesWriteObject/
H A DDefinesWriteObject.java78 DefinesWriteObject obj1 = new DefinesWriteObject(5, "GoodBye");
83 oos.writeObject(obj1);
95 if (obj1.intData != readObject1.intData ||
99 if ( ! ((String)obj1.objData).equals((String)readObject1.objData) ||
/openjdk10/nashorn/test/script/nosecurity/parsernegativetests/
H A Drepeatedproperty.js30 var obj1 = { foo: 34, set foo(x) { } };

Completed in 106 milliseconds

123