Fix {get,set}ter-on-elements tests to run through all creation functions
setter-on-elements had the wrong length hardcoded in a for loop over the creation functions (getter-on-elements had the right length, but seemed worth future-proofing). R=mvstanton@chromium.org Review URL: https://codereview.chromium.org/643143005 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24813 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
5a1774268a
commit
04db7c8793
@ -176,7 +176,7 @@ var cf = [create_func_smi,
|
||||
create_func_double,
|
||||
create_func_fast];
|
||||
|
||||
for(var c = 0; c < 3; c++) {
|
||||
for(var c = 0; c < cf.length; c++) {
|
||||
base_getter_test(cf[c]);
|
||||
}
|
||||
|
||||
|
@ -191,8 +191,8 @@ var cf = [create_func_smi,
|
||||
|
||||
var values = [3, 3.5, true];
|
||||
|
||||
for(var c = 0; c < 3; c++) {
|
||||
for(var s = 0; s < 3; s++) {
|
||||
for(var c = 0; c < cf.length; c++) {
|
||||
for(var s = 0; s < values.length; s++) {
|
||||
base_setter_test(cf[c], 0, values[s]);
|
||||
base_setter_test(cf[c], 1, values[s]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user