Index: test/mjsunit/regress/regress-2410.js |
diff --git a/src/platform-posix.h b/test/mjsunit/regress/regress-2410.js |
similarity index 81% |
copy from src/platform-posix.h |
copy to test/mjsunit/regress/regress-2410.js |
index 7a982ed2ef3080dad77860d6f46b356a9067bf3b..c16fd14cdc6070ef641962ca2476ae0b6b3e1d82 100644 |
--- a/src/platform-posix.h |
+++ b/test/mjsunit/regress/regress-2410.js |
@@ -25,15 +25,12 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-#ifndef V8_PLATFORM_POSIX_H_ |
-#define V8_PLATFORM_POSIX_H_ |
- |
-namespace v8 { |
-namespace internal { |
- |
-// Used by platform implementation files during OS::PostSetUp(). |
-void POSIXPostSetUp(); |
- |
-} } // namespace v8::internal |
+// Object.prototype should be ignored in Object.getOwnPropertyNames |
+// |
+// See http://code.google.com/p/v8/issues/detail?id=2410 for details. |
-#endif // V8_PLATFORM_POSIX_H_ |
+Object.defineProperty(Object.prototype, |
+ 'thrower', |
+ { get: function() { throw Error('bug') } }); |
+var obj = { thrower: 'local' }; |
+assertEquals(['thrower'], Object.getOwnPropertyNames(obj)); |