0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 12:51:52 +00:00

Remove count() echo statements

These cause the test to fail on old v8 versions like 3.24.10
since the Array.prototype.push implementation calls count() twice
with that version (causing a second echo-line that makes the
test fail).
This commit is contained in:
Stefan Siegl 2014-11-29 20:23:23 +00:00
parent 27d326a196
commit b25960786d

View File

@ -28,7 +28,6 @@ class MyArray implements ArrayAccess, Countable {
}
public function count() {
echo 'count() = ', count($this->data), "\n";
return count($this->data);
}
}
@ -51,11 +50,8 @@ $v8->executeString('var_dump(PHP.myarr.join(","));');
?>
===EOF===
--EXPECT--
count() = 3
set[3] = 23
count() = 4
int(4)
int(23)
count() = 4
string(16) "one,two,three,23"
===EOF===