v8/test/mjsunit/harmony
dehrenberg b23c328f53 In Array.of and Array.from, fall back to DefineOwnProperty
%AddElement is not intended for objects which are not arrays, and
its behavior may go away with future refactorings. This patch gets
rid of it if the receiver of from or of is not the intrinsic Array
object.

Array.of and Array.from previously papered over failures in calling
[[DefineOwnProperty]] when setting array elements. This patch
makes them lead to exceptions, and adds tests to assert that
the appropriate exceptions are thrown.

BUG=v8:4168
R=adamk
CC=rossberg,verwaest
LOG=Y

Review URL: https://codereview.chromium.org/1181623003

Cr-Commit-Position: refs/heads/master@{#28969}
2015-06-11 20:41:04 +00:00
..
regress Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
array-concat.js [tests]: fix exponentiation in harmony array-concat tests 2015-02-17 22:28:12 +00:00
array-copywithin.js Revert of Revert of [es6] implement Array.prototype.copyWithin() (patchset #1 id:1 of https://codereview.chromium.org/1084183004/) 2015-04-22 09:43:13 +00:00
array-fill.js Fix typos in unit test for Array.prototype.fill() 2014-05-09 16:11:50 +00:00
array-find.js [es6] Array.prototype.find and findIndex should include holes 2015-06-05 14:18:20 +00:00
array-findindex.js [es6] Array.prototype.find and findIndex should include holes 2015-06-05 14:18:20 +00:00
array-from.js In Array.of and Array.from, fall back to DefineOwnProperty 2015-06-11 20:41:04 +00:00
array-includes-to-object-sloppy.js Add Array.prototype.includes 2014-12-10 08:58:15 +00:00
array-includes-to-object-strict.js Add Array.prototype.includes 2014-12-10 08:58:15 +00:00
array-includes.js Add Array.prototype.includes 2014-12-10 08:58:15 +00:00
array-of.js In Array.of and Array.from, fall back to DefineOwnProperty 2015-06-11 20:41:04 +00:00
arrow-functions-lexical-arguments.js Lexical arguments for arrow functions 2015-04-09 19:39:38 +00:00
arrow-functions-this.js Reapply "Resolve references to "this" the same way as normal variables"" 2015-05-19 14:50:59 +00:00
arrow-functions.js [es6] do not add caller/arguments to ES6 function definitions 2015-04-09 22:40:28 +00:00
arrow-rest-params.js Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
atomics.js Implement Atomics API 2015-06-03 17:58:42 +00:00
block-lazy-compile.js Preliminary code for block scopes and block contexts. 2011-08-11 16:29:28 +00:00
class-computed-property-names-super.js Fix issue with super and computed property names 2015-02-11 15:13:12 +00:00
class-property-name-eval-arguments.js Allow eval and arguments as property names 2015-02-06 18:04:21 +00:00
classes-derived-return-type.js [es6] Fix return checking in derived constructors 2015-04-28 16:09:30 +00:00
classes-experimental.js Make super() a syntax error in base class constructor 2015-02-12 23:04:54 +00:00
classes-lazy-parsing.js [es6] super.prop, eval and lazy functions 2015-06-04 21:16:32 +00:00
classes-maps.js Add a test for subclass maps. 2015-04-14 09:59:02 +00:00
classes-subclass-arrays.js Implement subclassing Arrays. 2015-03-03 18:45:02 +00:00
classes.js [es6] Class extends may not be a generator function 2015-04-22 16:07:21 +00:00
computed-property-names-classes.js [es6] do not add caller/arguments to ES6 function definitions 2015-04-09 22:40:28 +00:00
computed-property-names-deopt.js [turbofan] Fix known issue about computed property names. 2015-05-26 08:45:16 +00:00
computed-property-names-object-literals-methods.js ES6 computed property names 2015-01-15 20:02:37 +00:00
computed-property-names-super.js Fix issue with super and computed property names 2015-02-11 15:13:12 +00:00
computed-property-names.js Fix issue with class name TDZ in computed property names 2015-02-26 18:37:19 +00:00
dataview-accessors.js Fix data view accessors to throw execptions on offsets bigger than size_t. 2013-11-18 15:16:22 +00:00
debug-step-into-class-extends.js Classes: Add support for stepping through default constructors 2014-11-15 19:48:39 +00:00
debug-step-into-constructor.js Classes: Add support for stepping through default constructors 2014-11-15 19:48:39 +00:00
destructuring.js [destructuring] Grand for statement parsing unification. 2015-05-21 17:46:45 +00:00
method-name-eval-arguments.js Allow eval and arguments as property names 2015-02-06 18:04:21 +00:00
module-linking.js Remove --harmony-scoping flag. 2015-03-13 15:15:57 +00:00
module-parsing-eval.js Enable compiling mjsunit tests as ES6 modules 2015-02-10 19:11:55 +00:00
module-recompile.js Implement proper module linking. 2012-07-09 08:59:03 +00:00
module-resolution.js Remove --harmony-scoping flag. 2015-03-13 15:15:57 +00:00
modules.js Enable compiling mjsunit tests as ES6 modules 2015-02-10 19:11:55 +00:00
object-assign.js [es6] implement Object.assign 2015-05-06 16:17:50 +00:00
object-literals-method.js [es6] Define generator prototype as writable prop 2015-05-26 18:31:49 +00:00
object-literals-property-shorthand.js Fix issue with __proto__ when using ES6 object literals 2015-01-20 16:31:43 +00:00
object-literals-super.js [es6] super.prop, eval and lazy functions 2015-06-04 21:16:32 +00:00
private.js Adjust key behaviour for weak collections 2015-03-18 12:51:58 +00:00
proxies-example-membrane.js Remove proxies from --harmony switch for M38, because problems 2014-08-08 09:58:19 +00:00
proxies-for.js Fix ToNameArray 2015-05-22 10:57:20 +00:00
proxies-function.js Mode clean-up pt 1: rename classic/non-strict mode to sloppy mode 2014-03-11 14:39:08 +00:00
proxies-hash.js Enable ES6 Map and Set by default 2014-08-05 19:37:32 +00:00
proxies-json.js Remove proxies from --harmony switch for M38, because problems 2014-08-08 09:58:19 +00:00
proxies-symbols.js Enable ES6 Symbols by default 2014-08-04 18:17:54 +00:00
proxies-with-unscopables.js ES6: Update unscopables to match spec 2014-12-16 20:07:41 +00:00
proxies-with.js Proxies: Make 'with' work, plus minor other fixes 2013-07-19 14:07:23 +00:00
proxies.js [crankshaft] Fix property access with proxies in prototype chain 2015-04-17 09:25:13 +00:00
reflect-apply.js [es6] implement Reflect.apply() & Reflect.construct() 2015-03-19 14:47:27 +00:00
reflect-construct.js [es6] implement Reflect.apply() & Reflect.construct() 2015-03-19 14:47:27 +00:00
regexp-flags.js Split --harmony-unicode and --harmony-unicode-regexps. 2015-02-05 14:17:09 +00:00
regexp-sticky.js Reland sticky regexps https://codereview.chromium.org/567313003/ 2014-09-19 07:36:05 +00:00
rest-params-lazy-parsing.js Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
rest-params.js [es6] generate rest parameters correctly for subclass constructors 2015-03-20 14:07:16 +00:00
set-prototype-of.js [es6] Object.getPrototypeOf should work with values 2015-04-01 00:22:39 +00:00
sharedarraybuffer.js Unship harmony tostring 2015-06-04 17:33:33 +00:00
spread-array.js [es6] Spread in array literals 2015-05-21 08:08:55 +00:00
spread-call-new-class.js [es6] implement spread calls 2015-04-09 19:37:19 +00:00
spread-call-new.js [es6] implement spread calls 2015-04-09 19:37:19 +00:00
spread-call-super-property.js [es6] support spread-calling Super-accessing properties 2015-05-14 22:59:14 +00:00
spread-call.js [es6] implement spread calls 2015-04-09 19:37:19 +00:00
super.js [es6] super.prop, eval and lazy functions 2015-06-04 21:16:32 +00:00
toMethod.js Remove Function.prototype.toMethod 2015-02-10 22:13:43 +00:00
typedarray-copywithin.js TypedArray.prototype.copyWithin method 2015-05-12 19:20:56 +00:00
typedarray-fill.js Test that TypedArray methods don't read length 2015-05-15 02:03:44 +00:00
typedarray-find.js Test that TypedArray methods don't read length 2015-05-15 02:03:44 +00:00
typedarray-findindex.js Test that TypedArray methods don't read length 2015-05-15 02:03:44 +00:00
typedarray-from.js Add TypedArray.from method 2015-05-18 20:13:47 +00:00
typedarray-indexing.js Implement %TypedArray%.{lastI,i}ndexOf 2015-05-20 01:09:05 +00:00
typedarray-iteration.js Re-land %TypedArray%.prototype.{map,filter,some} 2015-05-21 01:38:04 +00:00
typedarray-proto.js Make one copy for all TypedArray methods 2015-05-09 01:20:07 +00:00
typedarray-reduce.js Implement %TypedArray%.prototype.{reduce,reduceRight} 2015-06-04 16:36:49 +00:00
typedarray-reverse.js Implement %TypedArray%.reverse 2015-05-20 00:38:49 +00:00
typedarray-slice.js Implement %TypedArray%.prototype.slice 2015-06-09 19:40:56 +00:00
typedarray-sort.js Implement %TypedArray%.prototype.sort 2015-05-20 00:56:06 +00:00
typedarray-tostring.js Implement %TypedArray%.prototype.{toString,toLocaleString,join} 2015-06-02 18:58:24 +00:00
typedarrays-every.js Test that TypedArray methods don't read length 2015-05-15 02:03:44 +00:00
typedarrays-foreach.js Test that TypedArray methods don't read length 2015-05-15 02:03:44 +00:00
typedarrays-of.js Implement .of() on typed arrays 2014-11-13 11:20:13 +00:00
typedarrays.js fix special index parsing 2015-03-30 11:41:15 +00:00
unicode-escapes-in-regexps.js Split --harmony-unicode and --harmony-unicode-regexps. 2015-02-05 14:17:09 +00:00
unicode-escapes.js ES6 unicode extensions, part 1. 2014-12-02 10:58:19 +00:00