| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 69d08b23e246d449dfb7b6e6aff2d33ebac6a4b8..0c191c34c810109d6fa15e115803e9478ff413cc 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2011 the V8 project authors. All rights reserved.
|
| +// Copyright 2012 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -2867,6 +2867,16 @@ THREADED_TEST(isNumberType) {
|
| obj = env->Global()->Get(v8_str("obj"));
|
| CHECK(!obj->IsInt32());
|
| CHECK(!obj->IsUint32());
|
| + // Positive zero
|
| + CompileRun("var obj = 0.0;");
|
| + obj = env->Global()->Get(v8_str("obj"));
|
| + CHECK(obj->IsInt32());
|
| + CHECK(obj->IsUint32());
|
| + // Positive zero
|
| + CompileRun("var obj = -0.0;");
|
| + obj = env->Global()->Get(v8_str("obj"));
|
| + CHECK(!obj->IsInt32());
|
| + CHECK(!obj->IsUint32());
|
| }
|
|
|
|
|
|
|