Searched refs:obj (Results 1 - 25 of 2493) sorted by relevance

1234567891011>>

/openjdk10/nashorn/test/script/error/
H A DJDK-8098847.js25 * JDK-8098847: obj."prop" and obj.'prop' should result in SyntaxError
30 var obj = { "prop": 45 };
32 obj."prop" = "hello";
33 obj.'prop' = "hello";
/openjdk10/nashorn/test/script/basic/
H A Ddotpropname.js31 var obj = {}; function
32 obj["abc.yyy"] = function () {
36 obj["abc.yyy"]();
38 obj["abc.xyz"] = "hello";
39 print(obj["abc.xyz"]);
H A DNASHORN-153.js31 var obj = { "foo.bar" : 344 };
32 if (obj["foo.bar"] !== 344) {
H A DNASHORN-209.js31 var obj = {
37 print("obj.in = " + obj.in);
38 print("obj.class = " + obj.class);
39 print("obj.try = " + obj.try);
40 print("obj.typeof = " + obj.typeof);
41 print("obj
[all...]
H A Dtostring.js31 function show(obj) {
32 print(typeof(obj) + ", " + obj);
35 var obj = {};
36 show(obj);
37 obj = new Boolean(false);
38 show(obj);
39 obj = new Number(Math.PI);
40 show(obj);
41 obj
[all...]
H A DNASHORN-190.js31 var obj = {
35 obj[true] = 30;
36 obj[null] = 'java';
37 obj[undefined] = 'js';
39 if (obj[20] !== 'world') {
40 fail("obj[20] !== 'world'");
43 if (obj['20'] !== 'world') {
44 fail("obj['20'] !== 'world'");
47 if (obj[2.3] !== 'hello') {
48 fail("obj[2.
[all...]
H A Dwithprimitive.js32 var obj = 2; variable
34 with (obj) {
H A DNASHORN-225.js31 var obj = {};
32 Object.defineProperty(obj, "foo", {
37 Object.preventExtensions(obj);
38 if (Object.isFrozen(obj)) {
39 fail("obj should not be frozen!");
H A DNASHORN-37.js31 var obj = {};
33 obj[true] = "hello";
34 print(obj["true"]);
35 print(obj[true]);
37 obj["false"] = 33;
38 print(obj[false]);
39 print(obj['false']);
41 obj[null] = "foo";
42 print(obj["null"]);
43 print(obj[nul
[all...]
H A DNASHORN-482.js37 var obj = {};
38 obj.foo = func;
39 if (obj.foo() !== obj) {
H A DNASHORN-18.js30 var obj = {};
34 with(obj) {
H A Dnashorn2.js32 var obj = { prop: [3, 4] };
33 print(obj.prop[0]);
34 obj.prop[0] = 44;
35 print(obj.prop[0]);
H A Dextensibility.js33 var obj = { num: 45.0 };
35 print("extensible? " + Object.isExtensible(obj));
36 Object.preventExtensions(obj);
37 print("extensible? " + Object.isExtensible(obj));
39 obj['bar'] = "hello";
40 print(obj.bar);
41 obj.num = Math.PI;
42 print(obj.num);
44 obj.foo = 55;
45 print(obj
[all...]
H A Dpropertycheck.js25 * Check "prop" in obj syntax.
31 var obj = { bar: 33 };
34 print("foo" in obj);
37 print("bar" in obj);
H A Dpropchange.js31 var obj = { x: 343 };
33 for(i in obj) {
37 Object.defineProperty(obj, "x", {
41 for(i in obj) {
45 print(obj.x);
46 obj.x = 42;
47 print(obj.x);
50 Object.defineProperty(obj, "x", {
54 obj.x = "hello";
55 print(obj
[all...]
H A Dsealfreeze.js31 var obj = { num: Math.E };
33 print("sealed? " + Object.isSealed(obj));
34 print("frozen? " + Object.isFrozen(obj));
36 Object.seal(obj);
37 print("sealed? " + Object.isSealed(obj));
40 print("deleted num? " + (delete obj.num));
41 print("num = " + obj.num);
45 obj.num = Math.PI;
46 print("num = " + obj.num);
49 Object.freeze(obj);
[all...]
H A DJDK-8080848.js31 var obj = Object.bindProperties({}, new java.io.File("."));
33 delete obj.wait;
35 if (typeof obj.wait != 'undefined') {
36 throw new Error("obj.wait was not deleted");
H A DJDK-8048718.js31 var obj = JSON.parse('{"0":0, "64":0}'); variable
32 if ("1" in obj) {
36 if ("63" in obj) {
40 if (obj[0] != 0) {
41 fail("expected obj[0] to be 0");
44 if (obj[64] != 0) {
45 fail("expected obj[64] to be 0");
48 for (var i in obj) {
H A DNASHORN-156.js32 var obj = {
36 if (obj.foo != 3) {
37 throw new Error("obj.foo should be 3 got " + obj.foo);
H A DJDK-8024120.js31 var obj = {};
33 obj.__proto__ = null;
35 var p = Object.getPrototypeOf(obj);
37 fail("Object.getPrototypeOf(obj) is expected to be null");
H A DNASHORN-103.js31 function check(obj) {
32 if (obj === null || obj === undefined) {
H A DNASHORN-229.js32 var obj = {};
33 obj.foo = 0;
34 return (obj.foo === 0);
H A DJDK-8024846.js32 function func(obj) {
33 var arguments = obj;
36 return obj;
H A Dwritable_relink.js31 var obj = { namex: 120 };
34 obj.namex = "xxx " + i;
37 print(obj.namex);
38 Object.defineProperty(obj, "namex",
/openjdk10/nashorn/samples/dynalink/
H A Dmissing_method.js37 var obj = new MME()
40 obj.add("hello")
41 obj.add("world")
42 print(obj.size())
43 print(obj)
47 obj.foo(1, "www", true)
48 obj.bar("http", "dynalink")
51 obj.forEach(print)

Completed in 89 milliseconds

1234567891011>>