Searched refs:prototype (Results 1 - 25 of 215) sorted by relevance
123456789
/openjdk10/nashorn/test/script/basic/ |
H A D | NASHORN-80.js | 31 print(Boolean.prototype); 32 print(Number.prototype); 33 print(String.prototype); 34 print(RegExp.prototype); 35 print(Date.prototype);
|
H A D | JDK-8026805.js | 25 * JDK-8026805: Array.prototype.length doesn't work as expected 31 if (Array.prototype.length !== 0) { 35 Array.prototype[3] = 1; 37 if (Array.prototype.length !== 4) { 41 Array.prototype.length = 0; 43 if (Array.prototype.length !== 0) { 47 if (3 in Array.prototype) {
|
H A D | arrayprotoclass.js | 25 * Check Array.prototype class name. 31 Array.prototype.getClass = Object.prototype.toString; 32 print(Array.prototype.getClass()); // print [object Array]
|
H A D | NASHORN-366.js | 25 * NASHORN-366 : RegExp.prototype is a RegExp object and should support properties like source, global etc. 31 print(typeof RegExp.prototype.lastIndex) 32 print(typeof RegExp.prototype.source) 33 print(typeof RegExp.prototype.global) 34 print(typeof RegExp.prototype.ignoreCase) 35 print(typeof RegExp.prototype.multiline)
|
H A D | NASHORN-130.js | 25 * NASHORN-130 : prototype comparison throws java class cast exception 34 Func.prototype = Object; 36 if (f.prototype !== Object.prototype) { 37 fail("f.prototype should be Object.prototype");
|
H A D | NASHORN-488.js | 25 * NASHORN-488 : Function.prototype does not have 'prototype' property 31 var desc = Object.getOwnPropertyDescriptor(Function.prototype, "prototype"); 33 fail("Function.prototype has 'prototype'"); 36 Object.defineProperty(Function.prototype, "prototype", { 41 if (Function.prototype.prototype ! [all...] |
H A D | NASHORN-97.js | 25 * NASHORN-97 : Function.prototype should return undefined when invoked as a function 31 if ( Function.prototype(23) !== undefined) { 32 throw new Error("#1 Function.prototype should return undefined when invoked"); 35 if ( Function.prototype(23, "hello", {}) !== undefined) { 36 throw new Error("#2 Function.prototype should return undefined when invoked");
|
H A D | NASHORN-202.js | 25 * NASHORN-202 : Date.prototype.toJSON should accept one (unused) argument 31 if (Date.prototype.toJSON.length !== 1) { 32 throw new Error("Date.prototype.toJSON.length !== 1");
|
H A D | NASHORN-277.js | 25 * NASHORN-277 : Array.prototype is also an array. 31 if (! Array.isArray(Array.prototype)) { 32 fail("Array.isArray(Array.prototype) is false");
|
H A D | NASHORN-85.js | 25 * NASHORN-85 : String.prototype.length field should not be undefined 31 print("String.prototype.length is " + String.prototype.length);
|
H A D | NASHORN-169.js | 25 * NASHORN-169 : Array.prototype has 'length' property with the initial value of 0. 31 if (Array.prototype.length != 0.0) { 32 fail("Array.prototype.length should be 0.0");
|
H A D | NASHORN-25.js | 25 * NASHORN-25 : A function's prototype can be non-object 34 MyConstructor.prototype = 1; 36 if (typeof MyConstructor.prototype != 'number') { 37 print("ERROR: expect MyConstructor.prototype to be number type"); 39 print("yes, MyConstructor.prototype is a number"); 44 if (Object.getPrototypeOf(myObj) !== Object.prototype) { 45 print("ERROR: Object.getPrototypeOf(myObj) is not Object.prototype"); 47 print("yes, Object.getPrototypeOf(myObj) is Object.prototype");
|
H A D | builtinchain.js | 25 * Check important prototype chain properties of Function and Object. 32 print(typeof(Object.prototype) == 'object'); 34 // Function's prototype is a function! 35 print(typeof(Function.prototype) == 'function'); 38 print(Function.prototype === Object.getPrototypeOf(Function)); 39 print(Object.getPrototypeOf(Function.prototype) === Object.prototype); 42 print(Object.getPrototypeOf(Object.prototype) === null); 43 print(Object.getPrototypeOf(Object) === Function.prototype); 45 // check one function from Function.prototype [all...] |
H A D | NASHORN-446.js | 25 * NASHORN-446 : Should be able to set full year using Date.prototype.setFullYear on invalid Date objects 31 var oldFullYear = Date.prototype.getFullYear(); 33 Date.prototype.setFullYear(2012); 34 if (Date.prototype.getFullYear() !== 2012) { 35 fail("Can't set full year on Date.prototype"); 38 Date.prototype.setFullYear(oldFullYear);
|
H A D | NASHORN-87.js | 33 throw Error("Date.prototype." + name + " is not function"); 37 check(Date.prototype.getUTCMonth, "getUTCMonth") 38 check(Date.prototype.getUTCDay, "getUTCDay"); 39 check(Date.prototype.setMilliseconds, "setMilliseconds"); 40 check(Date.prototype.setUTCMilliseconds, "setUTCMilliseconds");
|
H A D | JDK-8026125.js | 25 * JDK-8026125: Array.prototype.slice.call(Java.type("java.util.HashMap")) throws ClassCastException: jdk.dynalink.beans.StaticClass cannot be cast to jdk.nashorn.internal.runtime.ScriptObject 31 Array.prototype.splice.call(Java.type("java.util.HashMap")) 32 Array.prototype.slice.call(Java.type("java.util.HashMap"))
|
H A D | NASHORN-396.js | 31 Object.defineProperty(Number.prototype, 40 Number.prototype.func = function() {
|
H A D | enumeration.js | 40 enumerate(Array.prototype, "Array.prototype"); 42 enumerate(Boolean.prototype, "Boolean.prototype"); 44 enumerate(Date.prototype, "Date.prototype"); 46 enumerate(Function.prototype, "Function.prototype"); 50 enumerate(Number.prototype, "Number.prototype"); [all...] |
H A D | NASHORN-62.js | 32 X.prototype.toString = function() { 39 Y.prototype = Object.create(X.prototype); 40 Y.prototype.name = "Y"; 47 Z.prototype = Object.create(X.prototype); 48 Z.prototype.name = "Z";
|
H A D | JDK-8026955.js | 31 Object.prototype[4] = "world"; 32 String.prototype[3] = "hello"; 33 Number.prototype[3] = "hello"; 34 Boolean.prototype[3] = "hello"; 50 testForIn(String.prototype);
|
H A D | JDK-8023784.js | 25 * JDK-8023784: Object.prototype.toString should contain the class name for all instances 33 print(Object.prototype.toString.call(new ArrayBuffer(1))); 34 print(Object.prototype.toString.call(new Int8Array(1))); 35 print(Object.prototype.toString.call(new Int16Array(1))); 36 print(Object.prototype.toString.call(new Int32Array(1))); 37 print(Object.prototype.toString.call(new Uint8Array(1))); 38 print(Object.prototype.toString.call(new Uint8ClampedArray(1))); 39 print(Object.prototype.toString.call(new Uint16Array(1))); 40 print(Object.prototype.toString.call(new Uint32Array(1))); 41 print(Object.prototype [all...] |
H A D | JDK-8077149.js | 37 Object.prototype.__noSuchProperty__ = function() { 43 Object.prototype.__noSuchMethod__ = function() { 49 Object.prototype._ = function() {
|
H A D | nonconstructors.js | 38 new Array.prototype.pop(); 44 new String.prototype.indexOf(); 50 new Boolean.prototype.valueOf();
|
H A D | NASHORN-544.js | 35 AssertionError.prototype = Object.create(Error.prototype); 36 AssertionError.prototype.name = "AssertionError";
|
H A D | NASHORN-516.js | 31 var origToString = Object.prototype.toString; 32 Object.prototype.toString = function () { 46 Object.prototype.toString = origToString;
|
Completed in 168 milliseconds
123456789