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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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": "['arguments', 'assign', 'caller', 'create', 'defineProperties', '
defineProperty', 'deliverChangeRecords', 'freeze', 'getNotifier', 'getOwnPropert
yDescriptor', 'getOwnPropertyNames', 'getOwnPropertySymbols', 'getPrototypeOf',
'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'observe
', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf', 'unobserve']", | 74 "Object": "['arguments', 'assign', 'caller', 'create', 'defineProperties', '
defineProperty', 'deliverChangeRecords', 'freeze', 'getNotifier', 'getOwnPropert
yDescriptor', 'getOwnPropertyNames', 'getOwnPropertySymbols', 'getPrototypeOf',
'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'observe
', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf', 'unobserve']", |
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": "['arguments', 'caller', 'length', 'name', 'prototype']", | 76 "Function": "['arguments', 'caller', 'length', 'name', 'prototype']", |
77 "Function.prototype": "['apply', 'arguments', 'bind', 'call', 'caller', 'con
structor', 'length', 'name', 'toString']", | 77 "Function.prototype": "['apply', 'arguments', 'bind', 'call', 'caller', 'con
structor', 'length', 'name', 'toString']", |
78 "Array": "['arguments', 'caller', 'isArray', 'length', 'name', 'observe', 'p
rototype', 'unobserve']", | 78 "Array": "['arguments', 'caller', 'from', 'isArray', 'length', 'name', 'obse
rve', 'of', 'prototype', 'unobserve']", |
79 "Array.prototype": "['concat', 'constructor', 'entries', 'every', 'filter',
'forEach', 'indexOf', 'join', 'keys', 'lastIndexOf', 'length', 'map', 'pop', 'pu
sh', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'spli
ce', 'toLocaleString', 'toString', 'unshift']", | 79 "Array.prototype": "['concat', 'constructor', 'copyWithin', 'entries', 'ever
y', 'fill', 'filter', 'find', 'findIndex', 'forEach', 'indexOf', 'join', 'keys',
'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'revers
e', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'u
nshift']", |
80 "String": "['arguments', 'caller', 'fromCharCode', 'fromCodePoint', 'length'
, 'name', 'prototype', 'raw']", | 80 "String": "['arguments', 'caller', 'fromCharCode', 'fromCodePoint', 'length'
, 'name', 'prototype', 'raw']", |
81 "String.prototype": "['anchor', 'big', 'blink', 'bold', 'charAt', 'charCodeA
t', 'codePointAt', 'concat', 'constructor', 'endsWith', 'fixed', 'fontcolor', 'f
ontsize', 'includes', 'indexOf', 'italics', 'lastIndexOf', 'length', 'link', 'lo
caleCompare', 'match', 'normalize', 'repeat', 'replace', 'search', 'slice', 'sma
ll', 'split', 'startsWith', 'strike', 'sub', 'substr', 'substring', 'sup', 'toLo
caleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toString', 'toUpperCase', '
trim', 'trimLeft', 'trimRight', 'valueOf']", | 81 "String.prototype": "['anchor', 'big', 'blink', 'bold', 'charAt', 'charCodeA
t', 'codePointAt', 'concat', 'constructor', 'endsWith', 'fixed', 'fontcolor', 'f
ontsize', 'includes', 'indexOf', 'italics', 'lastIndexOf', 'length', 'link', 'lo
caleCompare', 'match', 'normalize', 'repeat', 'replace', 'search', 'slice', 'sma
ll', 'split', 'startsWith', 'strike', 'sub', 'substr', 'substring', 'sup', 'toLo
caleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toString', 'toUpperCase', '
trim', 'trimLeft', 'trimRight', 'valueOf']", |
82 "Boolean": "['arguments', 'caller', 'length', 'name', 'prototype']", | 82 "Boolean": "['arguments', 'caller', 'length', 'name', 'prototype']", |
83 "Boolean.prototype": "['constructor', 'toString', 'valueOf']", | 83 "Boolean.prototype": "['constructor', 'toString', 'valueOf']", |
84 "Number": "['EPSILON', 'MAX_SAFE_INTEGER', 'MAX_VALUE', 'MIN_SAFE_INTEGER',
'MIN_VALUE', 'NEGATIVE_INFINITY', 'NaN', 'POSITIVE_INFINITY', 'arguments', 'call
er', 'isFinite', 'isInteger', 'isNaN', 'isSafeInteger', 'length', 'name', 'parse
Float', 'parseInt', 'prototype']", | 84 "Number": "['EPSILON', 'MAX_SAFE_INTEGER', 'MAX_VALUE', 'MIN_SAFE_INTEGER',
'MIN_VALUE', 'NEGATIVE_INFINITY', 'NaN', 'POSITIVE_INFINITY', 'arguments', 'call
er', 'isFinite', 'isInteger', 'isNaN', 'isSafeInteger', 'length', 'name', 'parse
Float', 'parseInt', 'prototype']", |
85 "Number.prototype": "['constructor', 'toExponential', 'toFixed', 'toLocaleSt
ring', 'toPrecision', 'toString', 'valueOf']", | 85 "Number.prototype": "['constructor', 'toExponential', 'toFixed', 'toLocaleSt
ring', 'toPrecision', 'toString', 'valueOf']", |
86 "Date": "['UTC', 'arguments', 'caller', 'length', 'name', 'now', 'parse', 'p
rototype']", | 86 "Date": "['UTC', 'arguments', 'caller', 'length', 'name', 'now', 'parse', 'p
rototype']", |
87 "Date.prototype": "['constructor', 'getDate', 'getDay', 'getFullYear', 'getH
ours', 'getMilliseconds', 'getMinutes', 'getMonth', 'getSeconds', 'getTime', 'ge
tTimezoneOffset', 'getUTCDate', 'getUTCDay', 'getUTCFullYear', 'getUTCHours', 'g
etUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', 'getUTCSeconds', 'getYear',
'setDate', 'setFullYear', 'setHours', 'setMilliseconds', 'setMinutes', 'setMonth
', 'setSeconds', 'setTime', 'setUTCDate', 'setUTCFullYear', 'setUTCHours', 'setU
TCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds', 'setYear', 'to
DateString', 'toGMTString', 'toISOString', 'toJSON', 'toLocaleDateString', 'toLo
caleString', 'toLocaleTimeString', 'toString', 'toTimeString', 'toUTCString', 'v
alueOf']", | 87 "Date.prototype": "['constructor', 'getDate', 'getDay', 'getFullYear', 'getH
ours', 'getMilliseconds', 'getMinutes', 'getMonth', 'getSeconds', 'getTime', 'ge
tTimezoneOffset', 'getUTCDate', 'getUTCDay', 'getUTCFullYear', 'getUTCHours', 'g
etUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', 'getUTCSeconds', 'getYear',
'setDate', 'setFullYear', 'setHours', 'setMilliseconds', 'setMinutes', 'setMonth
', 'setSeconds', 'setTime', 'setUTCDate', 'setUTCFullYear', 'setUTCHours', 'setU
TCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds', 'setYear', 'to
DateString', 'toGMTString', 'toISOString', 'toJSON', 'toLocaleDateString', 'toLo
caleString', 'toLocaleTimeString', 'toString', 'toTimeString', 'toUTCString', 'v
alueOf']", |
88 "RegExp": "['$&', \"$'\", '$*', '$+', '$1', '$2', '$3', '$4', '$5', '$6', '$
7', '$8', '$9', '$_', '$`', 'arguments', 'caller', 'input', 'lastMatch', 'lastPa
ren', 'leftContext', 'length', 'multiline', 'name', 'prototype', 'rightContext']
", | 88 "RegExp": "['$&', \"$'\", '$*', '$+', '$1', '$2', '$3', '$4', '$5', '$6', '$
7', '$8', '$9', '$_', '$`', 'arguments', 'caller', 'input', 'lastMatch', 'lastPa
ren', 'leftContext', 'length', 'multiline', 'name', 'prototype', 'rightContext']
", |
89 "RegExp.prototype": "['compile', 'constructor', 'exec', 'global', 'ignoreCas
e', 'lastIndex', 'multiline', 'source', 'test', 'toString']", | 89 "RegExp.prototype": "['compile', 'constructor', 'exec', 'global', 'ignoreCas
e', 'lastIndex', 'multiline', 'source', 'test', 'toString']", |
(...skipping 36 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 |