OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 // Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // 1. Redistributions of source code must retain the above copyright | 7 // 1. Redistributions of source code must retain the above copyright |
8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
9 // 2. Redistributions in binary form must reproduce the above copyright | 9 // 2. Redistributions in binary form must reproduce the above copyright |
10 // notice, this list of conditions and the following disclaimer in the | 10 // notice, this list of conditions and the following disclaimer in the |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 "parseFloat": "['length', 'name']", | 64 "parseFloat": "['length', 'name']", |
65 "isNaN": "['length', 'name']", | 65 "isNaN": "['length', 'name']", |
66 "isFinite": "['length', 'name']", | 66 "isFinite": "['length', 'name']", |
67 "escape": "['length', 'name']", | 67 "escape": "['length', 'name']", |
68 "unescape": "['length', 'name']", | 68 "unescape": "['length', 'name']", |
69 "decodeURI": "['length', 'name']", | 69 "decodeURI": "['length', 'name']", |
70 "decodeURIComponent": "['length', 'name']", | 70 "decodeURIComponent": "['length', 'name']", |
71 "encodeURI": "['length', 'name']", | 71 "encodeURI": "['length', 'name']", |
72 "encodeURIComponent": "['length', 'name']", | 72 "encodeURIComponent": "['length', 'name']", |
73 // Built-in ECMA objects | 73 // Built-in ECMA objects |
74 "Object": "['create', 'defineProperties', 'defineProperty', 'freeze', 'getOw
nPropertyDescriptor', 'getOwnPropertyNames', 'getPrototypeOf', 'isExtensible', '
isFrozen', 'isSealed', 'keys', 'length', 'name', 'preventExtensions', 'prototype
', 'seal']", | 74 "Object": "['create', 'defineProperties', 'defineProperty', 'freeze', 'getOw
nPropertyDescriptor', 'getOwnPropertyNames', 'getPrototypeOf', 'isExtensible', '
isFrozen', 'isSealed', 'keys', 'length', 'name', 'preventExtensions', 'prototype
', 'seal', 'setPrototypeOf']", |
75 "Object.prototype": "['__defineGetter__', '__defineSetter__', '__lookupGette
r__', '__lookupSetter__', '__proto__', 'constructor', 'hasOwnProperty', 'isProto
typeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']", | 75 "Object.prototype": "['__defineGetter__', '__defineSetter__', '__lookupGette
r__', '__lookupSetter__', '__proto__', 'constructor', 'hasOwnProperty', 'isProto
typeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']", |
76 "Function": "['length', 'name', 'prototype']", | 76 "Function": "['length', 'name', 'prototype']", |
77 "Function.prototype": "['apply', 'bind', 'call', 'constructor', 'length', 'n
ame', 'toString']", | 77 "Function.prototype": "['apply', 'bind', 'call', 'constructor', 'length', 'n
ame', 'toString']", |
78 "Array": "['isArray', 'length', 'name', 'prototype']", | 78 "Array": "['isArray', 'length', 'name', 'prototype']", |
79 "Array.prototype": "['concat', 'constructor', 'every', 'filter', 'forEach',
'indexOf', 'join', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'red
uceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleStrin
g', 'toString', 'unshift']", | 79 "Array.prototype": "['concat', 'constructor', 'every', 'filter', 'forEach',
'indexOf', 'join', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'red
uceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleStrin
g', 'toString', 'unshift']", |
80 "String": "['fromCharCode', 'length', 'name', 'prototype']", | 80 "String": "['fromCharCode', 'length', 'name', 'prototype']", |
81 "String.prototype": "['anchor', 'big', 'blink', 'bold', 'charAt', 'charCodeA
t', 'concat', 'constructor', 'fixed', 'fontcolor', 'fontsize', 'indexOf', 'itali
cs', 'lastIndexOf', 'length', 'link', 'localeCompare', 'match', 'replace', 'sear
ch', 'slice', 'small', 'split', 'strike', 'sub', 'substr', 'substring', 'sup', '
toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toString', 'toUpperCase
', 'trim', 'trimLeft', 'trimRight', 'valueOf']", | 81 "String.prototype": "['anchor', 'big', 'blink', 'bold', 'charAt', 'charCodeA
t', 'concat', 'constructor', 'fixed', 'fontcolor', 'fontsize', 'indexOf', 'itali
cs', 'lastIndexOf', 'length', 'link', 'localeCompare', 'match', 'replace', 'sear
ch', 'slice', 'small', 'split', 'strike', 'sub', 'substr', 'substring', 'sup', '
toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toString', 'toUpperCase
', 'trim', 'trimLeft', 'trimRight', 'valueOf']", |
82 "Boolean": "['length', 'name', 'prototype']", | 82 "Boolean": "['length', 'name', 'prototype']", |
83 "Boolean.prototype": "['constructor', 'toString', 'valueOf']", | 83 "Boolean.prototype": "['constructor', 'toString', 'valueOf']", |
84 "Number": "['MAX_VALUE', 'MIN_VALUE', 'NEGATIVE_INFINITY', 'NaN', 'POSITIVE_
INFINITY', 'length', 'name', 'prototype']", | 84 "Number": "['MAX_VALUE', 'MIN_VALUE', 'NEGATIVE_INFINITY', 'NaN', 'POSITIVE_
INFINITY', 'length', 'name', 'prototype']", |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 "Number", | 126 "Number", |
127 "Date", | 127 "Date", |
128 "RegExp", | 128 "RegExp", |
129 "Error", | 129 "Error", |
130 "Math", | 130 "Math", |
131 "JSON" | 131 "JSON" |
132 ]; | 132 ]; |
133 | 133 |
134 for (var i = 0; i < expectedGlobalPropertyNames.length; ++i) | 134 for (var i = 0; i < expectedGlobalPropertyNames.length; ++i) |
135 shouldBeTrue("globalPropertyNames.indexOf('" + expectedGlobalPropertyNames[i
] + "') != -1"); | 135 shouldBeTrue("globalPropertyNames.indexOf('" + expectedGlobalPropertyNames[i
] + "') != -1"); |
OLD | NEW |