v8/test
Mathias Bynens a10e4a179e [js] Check comparefn in (Typed)Array#sort
This patch ensures a `TypeError` is thrown when the argument passed to
`Array.prototype.sort` or `%TypedArray%.prototype.sort` is neither a
function nor `undefined`.

Every other major JavaScript engine already threw in this case. Making
V8’s behavior match increases interoperability.

https://github.com/tc39/ecma262/pull/785

BUG=v8:6542

Cq-Include-Trybots: master.tryserver.v8:v8_linux_noi18n_rel_ng
Change-Id: I412a59810abdd118217c8d8361389ec6c2f640bd
Reviewed-on: https://chromium-review.googlesource.com/668356
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48028}
2017-09-15 10:08:06 +00:00
..
benchmarks
cctest [js] Check comparefn in (Typed)Array#sort 2017-09-15 10:08:06 +00:00
common Add capability of throwing values in WASM 2017-09-13 19:29:15 +00:00
debugger [bigint] Add bytecodes for unary-minus and bitwise-not 2017-09-12 19:07:59 +00:00
fuzzer [iwyu] Remove obsolete "api.h" include from "handles-inl.h". 2017-09-11 12:52:20 +00:00
inspector [inspector] report [[Scopes]] all the time 2017-09-12 21:17:35 +00:00
intl Fix common misspellings 2017-08-02 09:35:28 +00:00
js-perf-test Implement microbenchmark for has-in idiom 2017-09-13 08:48:44 +00:00
memory [snapshot] add tracking for builtin snapshot size. 2017-08-31 07:29:31 +00:00
message [builtins] Port String.prototype.repeat to CSA 2017-09-15 06:51:56 +00:00
mjsunit [js] Check comparefn in (Typed)Array#sort 2017-09-15 10:08:06 +00:00
mkgrokdump
mozilla Reland "[d8] implement setTimeout." 2017-09-05 07:30:46 +00:00
preparser
promises-aplus Fix common misspellings 2017-08-02 09:35:28 +00:00
test262 [js] Check comparefn in (Typed)Array#sort 2017-09-15 10:08:06 +00:00
unittests [wasm] Streaming compilation for WebAssembly. 2017-09-15 06:36:25 +00:00
wasm-spec-tests [wasm] Update the wasm spec tests 2017-09-05 09:44:48 +00:00
webkit [parser] Inline ParseStatemantAsUnlabelled into its only useful caller 2017-09-07 21:01:46 +00:00
bot_default.gyp
bot_default.isolate
BUILD.gn
default.gyp
default.isolate
optimize_for_size.gyp
optimize_for_size.isolate
perf.gyp
perf.isolate