Changeset 80378 in webkit
- Timestamp:
- Mar 4, 2011 2:34:48 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 127 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r80373 r80378 1 2011-03-03 Gavin Barraclough <barraclough@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Bug 55736 - Implement seal/freeze/preventExtensions for normal object types. 6 Provide basic functionallity from section 15.2.4 of ECMA-262. 7 This support will need expanding to cover arrays, too. 8 9 Update results - many more tests PASS. 10 Also adds a new testcase. 11 12 * fast/js/Object-getOwnPropertyNames-expected.txt: 13 * fast/js/script-tests/Object-getOwnPropertyNames.js: 14 * ietestcenter/Javascript/15.2.3.10-0-1-expected.txt: 15 * ietestcenter/Javascript/15.2.3.10-0-2-expected.txt: 16 * ietestcenter/Javascript/15.2.3.10-1-expected.txt: 17 * ietestcenter/Javascript/15.2.3.10-2-expected.txt: 18 * ietestcenter/Javascript/15.2.3.11-0-1-expected.txt: 19 * ietestcenter/Javascript/15.2.3.11-0-2-expected.txt: 20 * ietestcenter/Javascript/15.2.3.11-1-expected.txt: 21 * ietestcenter/Javascript/15.2.3.11-4-1-expected.txt: 22 * ietestcenter/Javascript/15.2.3.11-4-10-expected.txt: 23 * ietestcenter/Javascript/15.2.3.11-4-11-expected.txt: 24 * ietestcenter/Javascript/15.2.3.11-4-12-expected.txt: 25 * ietestcenter/Javascript/15.2.3.11-4-13-expected.txt: 26 * ietestcenter/Javascript/15.2.3.11-4-14-expected.txt: 27 * ietestcenter/Javascript/15.2.3.11-4-15-expected.txt: 28 * ietestcenter/Javascript/15.2.3.11-4-16-expected.txt: 29 * ietestcenter/Javascript/15.2.3.11-4-17-expected.txt: 30 * ietestcenter/Javascript/15.2.3.11-4-18-expected.txt: 31 * ietestcenter/Javascript/15.2.3.11-4-19-expected.txt: 32 * ietestcenter/Javascript/15.2.3.11-4-2-expected.txt: 33 * ietestcenter/Javascript/15.2.3.11-4-20-expected.txt: 34 * ietestcenter/Javascript/15.2.3.11-4-21-expected.txt: 35 * ietestcenter/Javascript/15.2.3.11-4-22-expected.txt: 36 * ietestcenter/Javascript/15.2.3.11-4-23-expected.txt: 37 * ietestcenter/Javascript/15.2.3.11-4-24-expected.txt: 38 * ietestcenter/Javascript/15.2.3.11-4-25-expected.txt: 39 * ietestcenter/Javascript/15.2.3.11-4-26-expected.txt: 40 * ietestcenter/Javascript/15.2.3.11-4-27-expected.txt: 41 * ietestcenter/Javascript/15.2.3.11-4-3-expected.txt: 42 * ietestcenter/Javascript/15.2.3.11-4-4-expected.txt: 43 * ietestcenter/Javascript/15.2.3.11-4-5-expected.txt: 44 * ietestcenter/Javascript/15.2.3.11-4-6-expected.txt: 45 * ietestcenter/Javascript/15.2.3.11-4-7-expected.txt: 46 * ietestcenter/Javascript/15.2.3.11-4-8-expected.txt: 47 * ietestcenter/Javascript/15.2.3.11-4-9-expected.txt: 48 * ietestcenter/Javascript/15.2.3.12-0-1-expected.txt: 49 * ietestcenter/Javascript/15.2.3.12-0-2-expected.txt: 50 * ietestcenter/Javascript/15.2.3.12-1-expected.txt: 51 * ietestcenter/Javascript/15.2.3.12-3-1-expected.txt: 52 * ietestcenter/Javascript/15.2.3.12-3-10-expected.txt: 53 * ietestcenter/Javascript/15.2.3.12-3-11-expected.txt: 54 * ietestcenter/Javascript/15.2.3.12-3-12-expected.txt: 55 * ietestcenter/Javascript/15.2.3.12-3-13-expected.txt: 56 * ietestcenter/Javascript/15.2.3.12-3-14-expected.txt: 57 * ietestcenter/Javascript/15.2.3.12-3-15-expected.txt: 58 * ietestcenter/Javascript/15.2.3.12-3-16-expected.txt: 59 * ietestcenter/Javascript/15.2.3.12-3-17-expected.txt: 60 * ietestcenter/Javascript/15.2.3.12-3-18-expected.txt: 61 * ietestcenter/Javascript/15.2.3.12-3-19-expected.txt: 62 * ietestcenter/Javascript/15.2.3.12-3-2-expected.txt: 63 * ietestcenter/Javascript/15.2.3.12-3-20-expected.txt: 64 * ietestcenter/Javascript/15.2.3.12-3-21-expected.txt: 65 * ietestcenter/Javascript/15.2.3.12-3-22-expected.txt: 66 * ietestcenter/Javascript/15.2.3.12-3-23-expected.txt: 67 * ietestcenter/Javascript/15.2.3.12-3-24-expected.txt: 68 * ietestcenter/Javascript/15.2.3.12-3-25-expected.txt: 69 * ietestcenter/Javascript/15.2.3.12-3-26-expected.txt: 70 * ietestcenter/Javascript/15.2.3.12-3-27-expected.txt: 71 * ietestcenter/Javascript/15.2.3.12-3-3-expected.txt: 72 * ietestcenter/Javascript/15.2.3.12-3-4-expected.txt: 73 * ietestcenter/Javascript/15.2.3.12-3-5-expected.txt: 74 * ietestcenter/Javascript/15.2.3.12-3-6-expected.txt: 75 * ietestcenter/Javascript/15.2.3.12-3-7-expected.txt: 76 * ietestcenter/Javascript/15.2.3.12-3-8-expected.txt: 77 * ietestcenter/Javascript/15.2.3.12-3-9-expected.txt: 78 * ietestcenter/Javascript/15.2.3.13-0-1-expected.txt: 79 * ietestcenter/Javascript/15.2.3.13-0-2-expected.txt: 80 * ietestcenter/Javascript/15.2.3.13-0-3-expected.txt: 81 * ietestcenter/Javascript/15.2.3.13-1-expected.txt: 82 * ietestcenter/Javascript/15.2.3.13-2-1-expected.txt: 83 * ietestcenter/Javascript/15.2.3.13-2-10-expected.txt: 84 * ietestcenter/Javascript/15.2.3.13-2-11-expected.txt: 85 * ietestcenter/Javascript/15.2.3.13-2-12-expected.txt: 86 * ietestcenter/Javascript/15.2.3.13-2-13-expected.txt: 87 * ietestcenter/Javascript/15.2.3.13-2-14-expected.txt: 88 * ietestcenter/Javascript/15.2.3.13-2-15-expected.txt: 89 * ietestcenter/Javascript/15.2.3.13-2-16-expected.txt: 90 * ietestcenter/Javascript/15.2.3.13-2-17-expected.txt: 91 * ietestcenter/Javascript/15.2.3.13-2-18-expected.txt: 92 * ietestcenter/Javascript/15.2.3.13-2-19-expected.txt: 93 * ietestcenter/Javascript/15.2.3.13-2-2-expected.txt: 94 * ietestcenter/Javascript/15.2.3.13-2-20-expected.txt: 95 * ietestcenter/Javascript/15.2.3.13-2-21-expected.txt: 96 * ietestcenter/Javascript/15.2.3.13-2-3-expected.txt: 97 * ietestcenter/Javascript/15.2.3.13-2-4-expected.txt: 98 * ietestcenter/Javascript/15.2.3.13-2-5-expected.txt: 99 * ietestcenter/Javascript/15.2.3.13-2-6-expected.txt: 100 * ietestcenter/Javascript/15.2.3.13-2-7-expected.txt: 101 * ietestcenter/Javascript/15.2.3.13-2-8-expected.txt: 102 * ietestcenter/Javascript/15.2.3.13-2-9-expected.txt: 103 * ietestcenter/Javascript/15.2.3.14-2-4-expected.txt: 104 * ietestcenter/Javascript/15.2.3.14-2-5-expected.txt: 105 * ietestcenter/Javascript/15.2.3.14-2-6-expected.txt: 106 * ietestcenter/Javascript/15.2.3.3-4-20-expected.txt: 107 * ietestcenter/Javascript/15.2.3.3-4-21-expected.txt: 108 * ietestcenter/Javascript/15.2.3.3-4-22-expected.txt: 109 * ietestcenter/Javascript/15.2.3.3-4-23-expected.txt: 110 * ietestcenter/Javascript/15.2.3.3-4-24-expected.txt: 111 * ietestcenter/Javascript/15.2.3.3-4-25-expected.txt: 112 * ietestcenter/Javascript/15.2.3.4-4-2-expected.txt: 113 * ietestcenter/Javascript/15.2.3.6-4-1-expected.txt: 114 * ietestcenter/Javascript/15.2.3.8-0-1-expected.txt: 115 * ietestcenter/Javascript/15.2.3.8-0-2-expected.txt: 116 * ietestcenter/Javascript/15.2.3.8-1-expected.txt: 117 * ietestcenter/Javascript/15.2.3.9-0-1-expected.txt: 118 * ietestcenter/Javascript/15.2.3.9-0-2-expected.txt: 119 * ietestcenter/Javascript/15.2.3.9-1-expected.txt: 120 1 121 2011-03-04 Pavel Feldman <pfeldman@chromium.org> 2 122 -
trunk/LayoutTests/fast/js/Object-getOwnPropertyNames-expected.txt
r72063 r80378 41 41 PASS getSortedOwnPropertyNames(encodeURI) is ['length', 'name'] 42 42 PASS getSortedOwnPropertyNames(encodeURIComponent) is ['length', 'name'] 43 PASS getSortedOwnPropertyNames(Object) is ['create', 'defineProperties', 'defineProperty', ' getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getPrototypeOf', 'keys', 'length', 'name', 'prototype']43 PASS getSortedOwnPropertyNames(Object) is ['create', 'defineProperties', 'defineProperty', 'freeze', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getPrototypeOf', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'preventExtensions', 'prototype', 'seal'] 44 44 PASS getSortedOwnPropertyNames(Object.prototype) is ['__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'] 45 45 PASS getSortedOwnPropertyNames(Function) is ['length', 'name', 'prototype'] -
trunk/LayoutTests/fast/js/script-tests/Object-getOwnPropertyNames.js
r72063 r80378 49 49 "encodeURIComponent": "['length', 'name']", 50 50 // Built-in ECMA objects 51 "Object": "['create', 'defineProperties', 'defineProperty', ' getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getPrototypeOf', 'keys', 'length', 'name', 'prototype']",51 "Object": "['create', 'defineProperties', 'defineProperty', 'freeze', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getPrototypeOf', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'preventExtensions', 'prototype', 'seal']", 52 52 "Object.prototype": "['__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']", 53 53 "Function": "['length', 'name', 'prototype']", -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.10-0-1-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.10-0-2-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.10-1-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.10-2-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-0-1-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-0-2-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-1-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-1-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-10-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-11-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-12-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-13-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-14-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-15-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-16-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-17-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-18-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-19-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-2-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-20-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-21-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-22-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-23-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-24-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-25-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-26-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-27-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-3-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-4-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-5-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-6-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-7-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-8-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.11-4-9-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-0-1-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-0-2-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-1-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-1-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-10-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-11-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-12-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-13-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-14-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-15-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-16-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-17-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-18-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-19-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-2-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-20-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-21-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-22-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-23-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-24-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-25-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-26-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-27-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-3-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-4-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-5-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-6-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-7-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-8-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.12-3-9-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-0-1-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-0-2-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-0-3-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-1-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-1-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-10-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-11-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-12-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-13-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-14-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-15-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-16-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-17-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-18-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-19-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-2-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-20-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-21-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-3-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-4-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-5-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-6-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-7-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-8-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.13-2-9-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.14-2-4-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.14-2-5-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.14-2-6-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.3-4-20-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true. Was false. 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.3-4-21-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true. Was false. 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.3-4-22-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true. Was false. 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.3-4-23-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true. Was false. 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.3-4-24-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true. Was false. 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.3-4-25-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true. Was false. 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.4-4-2-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true. Was false. 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.6-4-1-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 8 8 PASS successfullyParsed is true -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.8-0-1-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.8-0-2-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.8-1-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.9-0-1-expected.txt
r62810 r80378 5 5 6 6 PASS ES5Harness.preconditionPassed is true 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.9-0-2-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/ietestcenter/Javascript/15.2.3.9-1-expected.txt
r62810 r80378 4 4 5 5 6 FAIL ES5Harness.preconditionPassed should be true (of type boolean). Was undefined (of type undefined). 7 FAIL ES5Harness.testPassed should be true (of type boolean). Was undefined (of type undefined). 6 PASS ES5Harness.preconditionPassed is true 7 PASS ES5Harness.testPassed is true 8 8 PASS successfullyParsed is true 9 9 -
trunk/Source/JavaScriptCore/Android.mk
r79177 r80378 201 201 MathObject.lut.h \ 202 202 NumberConstructor.lut.h \ 203 ObjectConstructor.lut.h \ 203 204 RegExpConstructor.lut.h \ 204 205 RegExpObject.lut.h \ -
trunk/Source/JavaScriptCore/ChangeLog
r80374 r80378 1 2011-03-03 Gavin Barraclough <barraclough@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Bug 55736 - Implement seal/freeze/preventExtensions for normal object types. 6 Provide basic functionallity from section 15.2.4 of ECMA-262. 7 This support will need expanding to cover arrays, too. 8 9 Shows a 0.5% progression on SunSpidey, this seems to be due to changing 10 ObjectConstructor to use a static table. 11 12 * DerivedSources.make: 13 * JavaScriptCore.exp: 14 * interpreter/CallFrame.h: 15 (JSC::ExecState::objectConstructorTable): 16 Add a static table for ObjectConstructor. 17 * runtime/CommonIdentifiers.h: 18 * runtime/JSGlobalData.cpp: 19 (JSC::JSGlobalData::JSGlobalData): 20 (JSC::JSGlobalData::~JSGlobalData): 21 Add a static table for ObjectConstructor. 22 * runtime/JSGlobalData.h: 23 * runtime/JSGlobalObject.cpp: 24 (JSC::JSGlobalObject::reset): 25 Add a static table for ObjectConstructor. 26 * runtime/JSObject.cpp: 27 (JSC::JSObject::seal): 28 (JSC::JSObject::freeze): 29 (JSC::JSObject::preventExtensions): 30 Transition the object's structure. 31 (JSC::JSObject::defineOwnProperty): 32 Check isExtensible. 33 * runtime/JSObject.h: 34 (JSC::JSObject::isSealed): 35 (JSC::JSObject::isFrozen): 36 (JSC::JSObject::isExtensible): 37 These wrap method on structure. 38 (JSC::JSObject::putDirectInternal): 39 Check isExtensible. 40 * runtime/ObjectConstructor.cpp: 41 (JSC::ObjectConstructor::ObjectConstructor): 42 (JSC::ObjectConstructor::getOwnPropertySlot): 43 (JSC::ObjectConstructor::getOwnPropertyDescriptor): 44 Change ObjectConstructor to use a static table. 45 (JSC::objectConstructorSeal): 46 (JSC::objectConstructorFreeze): 47 (JSC::objectConstructorPreventExtensions): 48 (JSC::objectConstructorIsSealed): 49 (JSC::objectConstructorIsFrozen): 50 (JSC::objectConstructorIsExtensible): 51 Add new methods on Object. 52 * runtime/ObjectConstructor.h: 53 (JSC::ObjectConstructor::createStructure): 54 * runtime/Structure.cpp: 55 (JSC::Structure::Structure): 56 init/propagate m_preventExtensions 57 (JSC::Structure::sealTransition): 58 (JSC::Structure::freezeTransition): 59 (JSC::Structure::preventExtensionsTransition): 60 transition the structure, materializing the property map, setting m_preventExtensions & changing attributes. 61 (JSC::Structure::isSealed): 62 (JSC::Structure::isFrozen): 63 check attributes to detect if object is sealed/frozen. 64 * runtime/Structure.h: 65 (JSC::Structure::isExtensible): 66 checks the m_preventExtensions flag. 67 1 68 2011-03-04 Steve Falkenburg <sfalken@apple.com> 2 69 -
trunk/Source/JavaScriptCore/DerivedSources.make
r78211 r80378 45 45 MathObject.lut.h \ 46 46 NumberConstructor.lut.h \ 47 ObjectConstructor.lut.h \ 47 48 RegExpConstructor.lut.h \ 48 49 RegExpJitTables.h \ -
trunk/Source/JavaScriptCore/DerivedSources.pro
r78211 r80378 20 20 runtime/MathObject.cpp \ 21 21 runtime/NumberConstructor.cpp \ 22 runtime/ObjectConstructor.cpp \ 22 23 runtime/RegExpConstructor.cpp \ 23 24 runtime/RegExpObject.cpp \ -
trunk/Source/JavaScriptCore/GNUmakefile.am
r80254 r80378 46 46 Source/JavaScriptCore/runtime/MathObject.lut.h \ 47 47 Source/JavaScriptCore/runtime/NumberConstructor.lut.h \ 48 Source/JavaScriptCore/runtime/ObjectConstructor.lut.h \ 48 49 Source/JavaScriptCore/runtime/RegExpConstructor.lut.h \ 49 50 Source/JavaScriptCore/runtime/RegExpObject.lut.h \ -
trunk/Source/JavaScriptCore/JavaScriptCore.exp
r80303 r80378 1 __ZN3JSC22objectConstructorTableE 1 2 _JSCheckScriptSyntax 2 3 _JSClassCreate -
trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r80323 r80378 2538 2538 buildConfigurationList = 149C277108902AFE008A9EFC /* Build configuration list for PBXProject "JavaScriptCore" */; 2539 2539 compatibilityVersion = "Xcode 3.1"; 2540 developmentRegion = English; 2540 2541 hasScannedForEncodings = 1; 2541 2542 knownRegions = ( -
trunk/Source/JavaScriptCore/interpreter/CallFrame.h
r79904 r80378 81 81 static const HashTable* mathTable(CallFrame* callFrame) { return callFrame->globalData().mathTable; } 82 82 static const HashTable* numberTable(CallFrame* callFrame) { return callFrame->globalData().numberTable; } 83 static const HashTable* objectConstructorTable(CallFrame* callFrame) { return callFrame->globalData().objectConstructorTable; } 83 84 static const HashTable* regExpTable(CallFrame* callFrame) { return callFrame->globalData().regExpTable; } 84 85 static const HashTable* regExpConstructorTable(CallFrame* callFrame) { return callFrame->globalData().regExpConstructorTable; } -
trunk/Source/JavaScriptCore/runtime/CommonIdentifiers.h
r76248 r80378 40 40 macro(configurable) \ 41 41 macro(constructor) \ 42 macro(create) \43 macro(defineProperty) \44 macro(defineProperties) \45 42 macro(enumerable) \ 46 43 macro(eval) \ … … 49 46 macro(global) \ 50 47 macro(get) \ 51 macro(getPrototypeOf) \52 macro(getOwnPropertyDescriptor) \53 macro(getOwnPropertyNames) \54 48 macro(hasOwnProperty) \ 55 49 macro(ignoreCase) \ … … 58 52 macro(isArray) \ 59 53 macro(isPrototypeOf) \ 60 macro(keys) \61 54 macro(length) \ 62 55 macro(message) \ -
trunk/Source/JavaScriptCore/runtime/JSGlobalData.cpp
r80006 r80378 76 76 extern JSC_CONST_HASHTABLE HashTable mathTable; 77 77 extern JSC_CONST_HASHTABLE HashTable numberTable; 78 extern JSC_CONST_HASHTABLE HashTable objectConstructorTable; 78 79 extern JSC_CONST_HASHTABLE HashTable regExpTable; 79 80 extern JSC_CONST_HASHTABLE HashTable regExpConstructorTable; … … 120 121 , mathTable(fastNew<HashTable>(JSC::mathTable)) 121 122 , numberTable(fastNew<HashTable>(JSC::numberTable)) 123 , objectConstructorTable(fastNew<HashTable>(JSC::objectConstructorTable)) 122 124 , regExpTable(fastNew<HashTable>(JSC::regExpTable)) 123 125 , regExpConstructorTable(fastNew<HashTable>(JSC::regExpConstructorTable)) … … 205 207 mathTable->deleteTable(); 206 208 numberTable->deleteTable(); 209 objectConstructorTable->deleteTable(); 207 210 regExpTable->deleteTable(); 208 211 regExpConstructorTable->deleteTable(); … … 214 217 fastDelete(const_cast<HashTable*>(mathTable)); 215 218 fastDelete(const_cast<HashTable*>(numberTable)); 219 fastDelete(const_cast<HashTable*>(objectConstructorTable)); 216 220 fastDelete(const_cast<HashTable*>(regExpTable)); 217 221 fastDelete(const_cast<HashTable*>(regExpConstructorTable)); -
trunk/Source/JavaScriptCore/runtime/JSGlobalData.h
r79967 r80378 140 140 const HashTable* mathTable; 141 141 const HashTable* numberTable; 142 const HashTable* objectConstructorTable; 142 143 const HashTable* regExpTable; 143 144 const HashTable* regExpConstructorTable; -
trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp
r80328 r80378 222 222 // Constructors 223 223 224 JSCell* objectConstructor = new (exec) ObjectConstructor(exec, this, ObjectConstructor::createStructure(d()->functionPrototype.get()), d()->objectPrototype.get() , d()->functionStructure.get());224 JSCell* objectConstructor = new (exec) ObjectConstructor(exec, this, ObjectConstructor::createStructure(d()->functionPrototype.get()), d()->objectPrototype.get()); 225 225 JSCell* functionConstructor = new (exec) FunctionConstructor(exec, this, FunctionConstructor::createStructure(d()->functionPrototype.get()), d()->functionPrototype.get()); 226 226 JSCell* arrayConstructor = new (exec) ArrayConstructor(exec, this, ArrayConstructor::createStructure(d()->functionPrototype.get()), d()->arrayPrototype.get(), d()->functionStructure.get()); -
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r80303 r80378 510 510 } 511 511 512 void JSObject::seal() 513 { 514 setStructure(Structure::sealTransition(m_structure)); 515 } 516 517 void JSObject::freeze() 518 { 519 setStructure(Structure::freezeTransition(m_structure)); 520 } 521 522 void JSObject::preventExtensions() 523 { 524 if (isExtensible()) 525 setStructure(Structure::preventExtensionsTransition(m_structure)); 526 } 527 512 528 void JSObject::removeDirect(const Identifier& propertyName) 513 529 { … … 646 662 PropertyDescriptor current; 647 663 if (!getOwnPropertyDescriptor(exec, propertyName, current)) { 664 // unless extensions are prevented! 665 if (!isExtensible()) 666 return false; 648 667 PropertyDescriptor oldDescriptor; 649 668 oldDescriptor.setValue(jsUndefined()); -
trunk/Source/JavaScriptCore/runtime/JSObject.h
r80006 r80378 211 211 virtual bool isErrorInstance() const { return false; } 212 212 213 void seal(); 214 void freeze(); 215 void preventExtensions(); 216 bool isSealed() { return m_structure->isSealed(); } 217 bool isFrozen() { return m_structure->isFrozen(); } 218 bool isExtensible() { return m_structure->isExtensible(); } 219 213 220 virtual ComplType exceptionType() const { return Throw; } 214 221 … … 571 578 return true; 572 579 } 580 581 if (!isExtensible()) 582 return false; 573 583 574 584 size_t currentCapacity = m_structure->propertyStorageCapacity(); … … 633 643 } 634 644 645 if (!isExtensible()) 646 return false; 647 635 648 RefPtr<Structure> structure = Structure::addPropertyTransition(m_structure, propertyName, attributes, specificFunction, offset); 636 649 -
trunk/Source/JavaScriptCore/runtime/ObjectConstructor.cpp
r79177 r80378 27 27 #include "JSArray.h" 28 28 #include "JSGlobalObject.h" 29 #include "Lookup.h" 29 30 #include "ObjectPrototype.h" 30 31 #include "PropertyDescriptor.h" … … 42 43 static EncodedJSValue JSC_HOST_CALL objectConstructorDefineProperties(ExecState*); 43 44 static EncodedJSValue JSC_HOST_CALL objectConstructorCreate(ExecState*); 44 45 ObjectConstructor::ObjectConstructor(ExecState* exec, JSGlobalObject* globalObject, NonNullPassRefPtr<Structure> structure, ObjectPrototype* objectPrototype, Structure* functionStructure) 45 static EncodedJSValue JSC_HOST_CALL objectConstructorSeal(ExecState*); 46 static EncodedJSValue JSC_HOST_CALL objectConstructorFreeze(ExecState*); 47 static EncodedJSValue JSC_HOST_CALL objectConstructorPreventExtensions(ExecState*); 48 static EncodedJSValue JSC_HOST_CALL objectConstructorIsSealed(ExecState*); 49 static EncodedJSValue JSC_HOST_CALL objectConstructorIsFrozen(ExecState*); 50 static EncodedJSValue JSC_HOST_CALL objectConstructorIsExtensible(ExecState*); 51 52 } 53 54 #include "ObjectConstructor.lut.h" 55 56 namespace JSC { 57 58 const ClassInfo ObjectConstructor::s_info = { "Function", &InternalFunction::s_info, 0, ExecState::objectConstructorTable }; 59 60 /* Source for ObjectConstructor.lut.h 61 @begin objectConstructorTable 62 getPrototypeOf objectConstructorGetPrototypeOf DontEnum|Function 1 63 getOwnPropertyDescriptor objectConstructorGetOwnPropertyDescriptor DontEnum|Function 2 64 getOwnPropertyNames objectConstructorGetOwnPropertyNames DontEnum|Function 1 65 keys objectConstructorKeys DontEnum|Function 1 66 defineProperty objectConstructorDefineProperty DontEnum|Function 3 67 defineProperties objectConstructorDefineProperties DontEnum|Function 2 68 create objectConstructorCreate DontEnum|Function 2 69 seal objectConstructorSeal DontEnum|Function 1 70 freeze objectConstructorFreeze DontEnum|Function 1 71 preventExtensions objectConstructorPreventExtensions DontEnum|Function 1 72 isSealed objectConstructorIsSealed DontEnum|Function 1 73 isFrozen objectConstructorIsFrozen DontEnum|Function 1 74 isExtensible objectConstructorIsExtensible DontEnum|Function 1 75 @end 76 */ 77 78 ObjectConstructor::ObjectConstructor(ExecState* exec, JSGlobalObject* globalObject, NonNullPassRefPtr<Structure> structure, ObjectPrototype* objectPrototype) 46 79 : InternalFunction(&exec->globalData(), globalObject, structure, Identifier(exec, "Object")) 47 80 { 48 81 // ECMA 15.2.3.1 49 82 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, objectPrototype, DontEnum | DontDelete | ReadOnly); 50 51 83 // no. of arguments for constructor 52 84 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly | DontEnum | DontDelete); 53 54 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().getPrototypeOf, objectConstructorGetPrototypeOf), DontEnum); 55 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().getOwnPropertyDescriptor, objectConstructorGetOwnPropertyDescriptor), DontEnum); 56 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().getOwnPropertyNames, objectConstructorGetOwnPropertyNames), DontEnum); 57 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().keys, objectConstructorKeys), DontEnum); 58 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 3, exec->propertyNames().defineProperty, objectConstructorDefineProperty), DontEnum); 59 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().defineProperties, objectConstructorDefineProperties), DontEnum); 60 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().create, objectConstructorCreate), DontEnum); 85 } 86 87 bool ObjectConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot &slot) 88 { 89 return getStaticFunctionSlot<JSObject>(exec, ExecState::objectConstructorTable(exec), this, propertyName, slot); 90 } 91 92 bool ObjectConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) 93 { 94 return getStaticFunctionDescriptor<JSObject>(exec, ExecState::objectConstructorTable(exec), this, propertyName, descriptor); 61 95 } 62 96 … … 317 351 } 318 352 353 EncodedJSValue JSC_HOST_CALL objectConstructorSeal(ExecState* exec) 354 { 355 JSValue obj = exec->argument(0); 356 if (!obj.isObject()) 357 return throwVMError(exec, createTypeError(exec, "Object.seal can only be called on Objects.")); 358 asObject(obj)->seal(); 359 return JSValue::encode(obj); 360 } 361 362 EncodedJSValue JSC_HOST_CALL objectConstructorFreeze(ExecState* exec) 363 { 364 JSValue obj = exec->argument(0); 365 if (!obj.isObject()) 366 return throwVMError(exec, createTypeError(exec, "Object.freeze can only be called on Objects.")); 367 asObject(obj)->freeze(); 368 return JSValue::encode(obj); 369 } 370 371 EncodedJSValue JSC_HOST_CALL objectConstructorPreventExtensions(ExecState* exec) 372 { 373 JSValue obj = exec->argument(0); 374 if (!obj.isObject()) 375 return throwVMError(exec, createTypeError(exec, "Object.preventExtensions can only be called on Objects.")); 376 asObject(obj)->preventExtensions(); 377 return JSValue::encode(obj); 378 } 379 380 EncodedJSValue JSC_HOST_CALL objectConstructorIsSealed(ExecState* exec) 381 { 382 JSValue obj = exec->argument(0); 383 if (!obj.isObject()) 384 return throwVMError(exec, createTypeError(exec, "Object.isSealed can only be called on Objects.")); 385 return JSValue::encode(jsBoolean(asObject(obj)->isSealed())); 386 } 387 388 EncodedJSValue JSC_HOST_CALL objectConstructorIsFrozen(ExecState* exec) 389 { 390 JSValue obj = exec->argument(0); 391 if (!obj.isObject()) 392 return throwVMError(exec, createTypeError(exec, "Object.isFrozen can only be called on Objects.")); 393 return JSValue::encode(jsBoolean(asObject(obj)->isFrozen())); 394 } 395 396 EncodedJSValue JSC_HOST_CALL objectConstructorIsExtensible(ExecState* exec) 397 { 398 JSValue obj = exec->argument(0); 399 if (!obj.isObject()) 400 return throwVMError(exec, createTypeError(exec, "Object.isExtensible can only be called on Objects.")); 401 return JSValue::encode(jsBoolean(asObject(obj)->isExtensible())); 402 } 403 319 404 } // namespace JSC -
trunk/Source/JavaScriptCore/runtime/ObjectConstructor.h
r79177 r80378 30 30 class ObjectConstructor : public InternalFunction { 31 31 public: 32 ObjectConstructor(ExecState*, JSGlobalObject*, NonNullPassRefPtr<Structure>, ObjectPrototype*, Structure* functionStructure); 32 ObjectConstructor(ExecState*, JSGlobalObject*, NonNullPassRefPtr<Structure>, ObjectPrototype*); 33 34 virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); 35 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); 36 37 static const ClassInfo s_info; 38 39 static PassRefPtr<Structure> createStructure(JSValue prototype) 40 { 41 return Structure::create(prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info); 42 } 43 44 protected: 45 static const unsigned StructureFlags = OverridesGetOwnPropertySlot | InternalFunction::StructureFlags; 33 46 34 47 private: -
trunk/Source/JavaScriptCore/runtime/Structure.cpp
r79963 r80378 204 204 , m_specificFunctionThrashCount(0) 205 205 , m_anonymousSlotCount(anonymousSlotCount) 206 , m_preventExtensions(false) 206 207 { 207 208 ASSERT(m_prototype); … … 237 238 , m_specificFunctionThrashCount(previous->m_specificFunctionThrashCount) 238 239 , m_anonymousSlotCount(previous->anonymousSlotCount()) 240 , m_preventExtensions(previous->m_preventExtensions) 239 241 { 240 242 ASSERT(m_prototype); … … 518 520 { 519 521 return toDictionaryTransition(structure, UncachedDictionaryKind); 522 } 523 524 // In future we may want to cache this transition. 525 PassRefPtr<Structure> Structure::sealTransition(Structure* structure) 526 { 527 RefPtr<Structure> transition = preventExtensionsTransition(structure); 528 529 if (transition->m_propertyTable) { 530 PropertyTable::iterator end = transition->m_propertyTable->end(); 531 for (PropertyTable::iterator iter = transition->m_propertyTable->begin(); iter != end; ++iter) 532 iter->attributes |= DontDelete; 533 } 534 535 return transition.release(); 536 } 537 538 // In future we may want to cache this transition. 539 PassRefPtr<Structure> Structure::freezeTransition(Structure* structure) 540 { 541 RefPtr<Structure> transition = preventExtensionsTransition(structure); 542 543 if (transition->m_propertyTable) { 544 PropertyTable::iterator end = transition->m_propertyTable->end(); 545 for (PropertyTable::iterator iter = transition->m_propertyTable->begin(); iter != end; ++iter) 546 iter->attributes |= (DontDelete | ReadOnly); 547 } 548 549 return transition.release(); 550 } 551 552 // In future we may want to cache this transition. 553 PassRefPtr<Structure> Structure::preventExtensionsTransition(Structure* structure) 554 { 555 RefPtr<Structure> transition = create(structure); 556 557 // Don't set m_offset, as one can not transition to this. 558 559 structure->materializePropertyMapIfNecessary(); 560 transition->m_propertyTable = structure->copyPropertyTable(); 561 transition->m_isPinnedPropertyTable = true; 562 transition->m_preventExtensions = true; 563 564 ASSERT(structure->anonymousSlotCount() == transition->anonymousSlotCount()); 565 return transition.release(); 566 } 567 568 // In future we may want to cache this property. 569 bool Structure::isSealed() 570 { 571 if (isExtensible()) 572 return false; 573 574 materializePropertyMapIfNecessary(); 575 if (!m_propertyTable) 576 return true; 577 578 PropertyTable::iterator end = m_propertyTable->end(); 579 for (PropertyTable::iterator iter = m_propertyTable->begin(); iter != end; ++iter) { 580 if ((iter->attributes & DontDelete) != DontDelete) 581 return false; 582 } 583 return true; 584 } 585 586 // In future we may want to cache this property. 587 bool Structure::isFrozen() 588 { 589 if (isExtensible()) 590 return false; 591 592 materializePropertyMapIfNecessary(); 593 if (!m_propertyTable) 594 return true; 595 596 PropertyTable::iterator end = m_propertyTable->end(); 597 for (PropertyTable::iterator iter = m_propertyTable->begin(); iter != end; ++iter) { 598 if ((iter->attributes & (DontDelete | ReadOnly)) != (DontDelete | ReadOnly)) 599 return false; 600 } 601 return true; 520 602 } 521 603 -
trunk/Source/JavaScriptCore/runtime/Structure.h
r79963 r80378 77 77 static PassRefPtr<Structure> toCacheableDictionaryTransition(Structure*); 78 78 static PassRefPtr<Structure> toUncacheableDictionaryTransition(Structure*); 79 static PassRefPtr<Structure> sealTransition(Structure*); 80 static PassRefPtr<Structure> freezeTransition(Structure*); 81 static PassRefPtr<Structure> preventExtensionsTransition(Structure*); 82 83 bool isSealed(); 84 bool isFrozen(); 85 bool isExtensible() const { return !m_preventExtensions; } 79 86 80 87 PassRefPtr<Structure> flattenDictionaryStructure(JSGlobalData&, JSObject*); … … 217 224 unsigned m_specificFunctionThrashCount : 2; 218 225 unsigned m_anonymousSlotCount : 5; 219 // 5 free bits 226 unsigned m_preventExtensions : 1; 227 // 4 free bits 220 228 }; 221 229
Note: See TracChangeset
for help on using the changeset viewer.