mirror of https://github.com/tc39/test262.git
ebb6c34fa5
* ResizableArrayBuffer: TypedArray.prototype.set * Resizable ArrayBuffer: TypedArray methods The files in this patch are highly similar. Only the test for `TypedArray.prototype.copyWithin` was written manually. The others were generated from that test via the following script: #!/bin/bash set -eu names_cb=' every filter find findIndex forEach map reduce reduceRight some ' names_num=' at fill includes indexOf join lastIndexOf slice ' names_none=' entries values keys reverse sort toLocaleString values ' for name in $(printf "${names_cb} ${names_num} ${names_none}"); do lower=$(echo ${name} | tr '[:upper:]' '[:lower:]') if echo "$names_cb" | grep -xq $name; then value='() => {}' elif echo "$names_num" | grep -xq $name; then value='0' else value='' fi if [[ "${name}" == 'at' ]]; then features_addition='TypedArray.prototype.at, ' else features_addition='' fi sed \ -e "s/copywithin/${lower}/g" \ -e "s/copyWithin/${name}/g" \ -e "s/${name}(.*);/${name}(${value});/g" \ -e "s/resizable-arraybuffer/${features_addition}resizable-arraybuffer/g" \ ./test/built-ins/TypedArray/prototype/copyWithin/return-abrupt-from-this-out-of-bounds.js \ > ./test/built-ins/TypedArray/prototype/${name}/return-abrupt-from-this-out-of-bounds.js done |
||
---|---|---|
.. | ||
Symbol.species | ||
from | ||
of | ||
prototype | ||
invoked.js | ||
length.js | ||
name.js | ||
prototype.js |