mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 23:51:51 +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:
parent
27d326a196
commit
b25960786d
@ -28,7 +28,6 @@ class MyArray implements ArrayAccess, Countable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function count() {
|
public function count() {
|
||||||
echo 'count() = ', count($this->data), "\n";
|
|
||||||
return count($this->data);
|
return count($this->data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -51,11 +50,8 @@ $v8->executeString('var_dump(PHP.myarr.join(","));');
|
|||||||
?>
|
?>
|
||||||
===EOF===
|
===EOF===
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
count() = 3
|
|
||||||
set[3] = 23
|
set[3] = 23
|
||||||
count() = 4
|
|
||||||
int(4)
|
int(4)
|
||||||
int(23)
|
int(23)
|
||||||
count() = 4
|
|
||||||
string(16) "one,two,three,23"
|
string(16) "one,two,three,23"
|
||||||
===EOF===
|
===EOF===
|
||||||
|
Loading…
Reference in New Issue
Block a user