/external/v8/test/mjsunit/ |
regexp-string-methods.js | 28 // Regexp shouldn't use String.prototype.slice() 31 String.prototype.slice = function() { return "x"; } 35 // Regexp shouldn't use String.prototype.charAt() 39 String.prototype.charAt = function(idx) { return 'g'; }; 47 // We match other browsers in using the original value of RegExp.prototype.exec. 48 // I.e., RegExp.prototype.test shouldn't use the current value of 49 // RegExp.prototype.exec. 50 RegExp.prototype.exec = function(string) { return 'x'; }
|
array-functions-prototype.js | 29 // interaction with properties in the prototype chain. 37 constructor.prototype = proto; 39 // Set elements on the array prototype. 40 Array.prototype[0] = 'zero'; 41 Array.prototype[1] = 'one'; 42 Array.prototype[2] = 'two'; 63 assertEquals('zero', Array.prototype.shift.call(nonArray)); 71 // differently from non-arrays. It only consults the prototype for 78 // Get index 2 from the prototype. 94 assertEquals(4, Array.prototype.unshift.call(nonArray, 'zero')) [all...] |
error-constructors.js | 30 Error.prototype.toString = Object.prototype.toString; 31 assertEquals("[object Error]", Error.prototype.toString()); 32 assertEquals(Object.prototype, Error.prototype.__proto__);
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Array/ |
15.4.2.1-3.js | 28 The [[Prototype]] property of the newly constructed 29 object is set to the original Array prototype object, 30 the one that is the initial value of Array.prototype 87 array[item++] = new TestCase( SECTION, "TEST_ARRAY.toString", Array.prototype.toString, TEST_ARRAY.toString ); 88 array[item++] = new TestCase( SECTION, "TEST_ARRAY.join", Array.prototype.join, TEST_ARRAY.join ); 89 array[item++] = new TestCase( SECTION, "TEST_ARRAY.sort", Array.prototype.sort, TEST_ARRAY.sort ); 90 array[item++] = new TestCase( SECTION, "TEST_ARRAY.reverse", Array.prototype.reverse, TEST_ARRAY.reverse ); 93 "TEST_ARRAY.toString = Object.prototype.toString; TEST_ARRAY.toString()", 95 eval("TEST_ARRAY.toString = Object.prototype.toString; TEST_ARRAY.toString()") );
|
15.4.4.3-1.js | 24 ECMA Section: 15.4.4.3-1 Array.prototype.join() 33 ECMA-262 Ed.3 Section 15.4.4.5 Array.prototype.join() 43 writeHeaderToLog( SECTION + " Array.prototype.join()"); 52 var ARR_PROTOTYPE = Array.prototype; 54 array[item++] = new TestCase( SECTION, "Array.prototype.join.length", 1, Array.prototype.join.length ); 55 array[item++] = new TestCase( SECTION, "delete Array.prototype.join.length", false, delete Array.prototype.join.length ); 56 array[item++] = new TestCase( SECTION, "delete Array.prototype.join.length; Array.prototype.join.length", 1, eval("delete Array.prototype.join.length; Array.prototype.join.length") ) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/js1_3/inherit/ |
proto_11.js | 32 This tests the syntax ObjectName.prototype = new PrototypeObject using the 58 Manager.prototype = new Employee(); 65 WorkerBee.prototype = new Employee(); 71 SalesPerson.prototype = new WorkerBee(); 78 Engineer.prototype = new WorkerBee();
|
/external/webkit/WebCore/inspector/front-end/ |
AuditsPanel.js | 59 WebInspector.AuditsPanel.prototype = { 238 WebInspector.Panel.prototype.show.call(this); 246 WebInspector.Panel.prototype.attach.call(this); 276 WebInspector.AuditsPanel.prototype.__proto__ = WebInspector.Panel.prototype; 286 WebInspector.AuditCategory.prototype = { 334 WebInspector.AuditRule.prototype = { 371 WebInspector.AuditCategoryResult.prototype = { 400 WebInspector.AuditRuleResult.prototype = { 429 WebInspector.AuditsSidebarTreeElement.prototype = [all...] |
FontView.js | 51 WebInspector.FontView.prototype = { 54 WebInspector.ResourceView.prototype.show.call(this, parentElement); 104 WebInspector.FontView.prototype.__proto__ = WebInspector.ResourceView.prototype;
|
InjectedScriptAccess.js | 46 InjectedScriptAccess.prototype = {}; 50 InjectedScriptAccess.prototype[methodName] = function() 52 var allArgs = Array.prototype.slice.call(arguments); 54 var argsString = JSON.stringify(Array.prototype.slice.call(allArgs, 0, allArgs.length - 1));
|
PanelEnablerView.js | 76 WebInspector.PanelEnablerView.prototype = { 84 WebInspector.View.prototype.show.call(this, parentElement); 102 WebInspector.PanelEnablerView.prototype.__proto__ = WebInspector.View.prototype;
|
Breakpoint.js | 36 WebInspector.Breakpoint.prototype = { 96 WebInspector.Breakpoint.prototype.__proto__ = WebInspector.Object.prototype;
|
ChangesView.js | 50 WebInspector.ChangesView.prototype = { 80 WebInspector.ChangesView.prototype.__proto__ = WebInspector.View.prototype;
|
ImageView.js | 71 WebInspector.ImageView.prototype = { 75 WebInspector.ImageView.prototype.__proto__ = WebInspector.ResourceView.prototype;
|
Settings.js | 53 WebInspector.Settings.prototype = { 99 WebInspector.Settings.prototype.__proto__ = WebInspector.Object.prototype;
|
WelcomeView.js | 58 WebInspector.WelcomeView.prototype = { 73 WebInspector.WelcomeView.prototype.__proto__ = WebInspector.View.prototype;
|
ScopeChainSidebarPane.js | 32 WebInspector.ScopeChainSidebarPane.prototype = { 93 WebInspector.ScopeChainSidebarPane.prototype.__proto__ = WebInspector.SidebarPane.prototype; 100 WebInspector.ScopeVariableTreeElement.prototype = { 103 WebInspector.ObjectPropertyTreeElement.prototype.onattach.call(this); 148 WebInspector.ScopeVariableTreeElement.prototype.__proto__ = WebInspector.ObjectPropertyTreeElement.prototype;
|
/external/v8/src/ |
mirror-debugger.js | 125 * Inherit the prototype methods from one constructor into another. 127 * The Function.prototype.inherits from lang.js rewritten as a standalone 128 * function (not on Function.prototype). NOTE: If this file is to be loaded 130 * functions as prototype setup using normal JavaScript does not work as 134 * prototype 135 * @param {function} superCtor Constructor function to inherit prototype from 139 tempCtor.prototype = superCtor.prototype; 140 ctor.super_ = superCtor.prototype; 141 ctor.prototype = new tempCtor() [all...] |
/external/webkit/JavaScriptCore/runtime/ |
JSObject.cpp | 114 nextPrototypeValue = nextPrototype->prototype(); 121 // Check if there are any setters or getters in the prototype chain 122 JSValue prototype; local 123 for (JSObject* obj = this; !obj->structure()->hasGetterSetterProperties(); obj = asObject(prototype)) { 124 prototype = obj->prototype(); 125 if (prototype.isNull()) { 136 for (JSObject* obj = this; ; obj = asObject(prototype)) { 158 prototype = obj->prototype(); [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma_3/Exceptions/ |
15.11.7.6-002.js | 38 * SUMMARY: Prototype of predefined error objects should be DontDelete 45 var summary = 'Prototype of predefined error objects should be DontDelete'; 55 * Tests that |F.prototype| is DontDelete 59 var orig = F.prototype; 60 delete F.prototype; 61 return F.prototype === orig; 84 status = 'Testing DontDelete attribute of |' + list[i] + '.prototype|';
|
15.11.7.6-003.js | 38 * SUMMARY: Prototype of predefined error objects should be ReadOnly 45 var summary = 'Prototype of predefined error objects should be ReadOnly'; 55 * Tests that |F.prototype| is ReadOnly 59 var orig = F.prototype; 60 F.prototype = new Object(); 61 return F.prototype === orig; 84 status = 'Testing ReadOnly attribute of |' + list[i] + '.prototype|';
|
/external/v8/test/mjsunit/compiler/ |
simple-bailouts.js | 43 Test.prototype.test0 = function () { 47 Test.prototype.test1 = function() { 51 Test.prototype.test2 = function() { 55 Test.prototype.test3 = function() { 59 Test.prototype.test4 = function() { 63 Test.prototype.test5 = function() { 67 Test.prototype.test6 = function() { 71 Test.prototype.test7 = function() { 77 Test.prototype.test8 = function () { 84 Test.prototype.test9 = function() [all...] |
/external/webkit/JavaScriptCore/API/ |
JSContextRef.cpp | 102 JSValue prototype = globalObjectClass->prototype(exec); local 103 if (!prototype) 104 prototype = jsNull(); 105 globalObject->resetPrototype(prototype);
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma_2/RegExp/ |
properties-002.js | 80 AddTestCase( re + ".test == RegExp.prototype.test", 82 re.test == RegExp.prototype.test ); 84 AddTestCase( re + ".toString == RegExp.prototype.toString", 86 re.toString == RegExp.prototype.toString ); 88 AddTestCase( re + ".contructor == RegExp.prototype.constructor", 90 re.constructor == RegExp.prototype.constructor ); 92 AddTestCase( re + ".compile == RegExp.prototype.compile", 94 re.compile == RegExp.prototype.compile ); 96 AddTestCase( re + ".exec == RegExp.prototype.exec", 98 re.exec == RegExp.prototype.exec ) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Number/ |
15.7.2.js | 32 15.7.2.1 The [[Prototype]] property of the newly 34 prototype object, the one that is the initial value 35 of Number.prototype(0). The [[Class]] property is 63 // To verify that the object's prototype is the Number.prototype, check to see if the object's 64 // constructor property is the same as Number.prototype.constructor. 66 array[item++] = new TestCase(SECTION, "(new Number()).constructor", Number.prototype.constructor, (new Number()).constructor ); 71 "NUMB = new Number();NUMB.toString=Object.prototype.toString;NUMB.toString()", 73 eval("NUMB = new Number();NUMB.toString=Object.prototype.toString;NUMB.toString()") ); 75 array[item++] = new TestCase(SECTION, "(new Number(0)).constructor", Number.prototype.constructor, (new Number(0)).constructor ) [all...] |
/external/webkit/WebKit/chromium/src/js/ |
HeapProfilerPanel.js | 35 WebInspector.ProfilesPanel.prototype.addSnapshot = function(snapshot) { 126 WebInspector.HeapSnapshotView.prototype = { 145 WebInspector.View.prototype.show.call(this, parentElement); 151 WebInspector.View.prototype.hide.call(this); 230 WebInspector.HeapSnapshotView.prototype._deleteSearchMatchedFlags(heapSnapshotDataGridNode); 279 jumpToFirstSearchResult: WebInspector.CPUProfileView.prototype.jumpToFirstSearchResult, 280 jumpToLastSearchResult: WebInspector.CPUProfileView.prototype.jumpToLastSearchResult, 281 jumpToNextSearchResult: WebInspector.CPUProfileView.prototype.jumpToNextSearchResult, 282 jumpToPreviousSearchResult: WebInspector.CPUProfileView.prototype.jumpToPreviousSearchResult, 283 showingFirstSearchResult: WebInspector.CPUProfileView.prototype.showingFirstSearchResult [all...] |