Index: test/cctest/test-platform.cc |
diff --git a/test/mjsunit/regress/regress-crbug-172345.js b/test/cctest/test-platform.cc |
similarity index 91% |
copy from test/mjsunit/regress/regress-crbug-172345.js |
copy to test/cctest/test-platform.cc |
index 711501caa791f2974635ac4dd894568a2e3fc982..6c20b853c5e7408b1877ee74617c01c3fc32ed5f 100644 |
--- a/test/mjsunit/regress/regress-crbug-172345.js |
+++ b/test/cctest/test-platform.cc |
@@ -25,10 +25,13 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-function f(a,i) { |
- return a[i]; |
-} |
+#include <stdlib.h> |
+ |
+#include "cctest.h" |
+#include "platform.h" |
-f([1,2,3], "length"); |
-f([1,2,3], "length"); |
-f([1,2,3], 2); |
+using namespace ::v8::internal; |
+ |
+TEST(NumberOfCores) { |
+ CHECK_GT(OS::NumberOfCores(), 0); |
+} |