| Index: test/mjsunit/regress/regress-143967.js
|
| diff --git a/src/platform-posix.h b/test/mjsunit/regress/regress-143967.js
|
| similarity index 83%
|
| copy from src/platform-posix.h
|
| copy to test/mjsunit/regress/regress-143967.js
|
| index 7a982ed2ef3080dad77860d6f46b356a9067bf3b..7c12e67153378ee866bc9c1df73ec5719700472c 100644
|
| --- a/src/platform-posix.h
|
| +++ b/test/mjsunit/regress/regress-143967.js
|
| @@ -25,15 +25,10 @@
|
| // (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_
|
| +// Check that Accessors::FunctionGetPrototype traverses the prototype
|
| +// chain correctly and doesn't get stuck.
|
|
|
| -namespace v8 {
|
| -namespace internal {
|
| -
|
| -// Used by platform implementation files during OS::PostSetUp().
|
| -void POSIXPostSetUp();
|
| -
|
| -} } // namespace v8::internal
|
| -
|
| -#endif // V8_PLATFORM_POSIX_H_
|
| +var functionWithoutProto = [].filter;
|
| +var obj = Object.create(functionWithoutProto);
|
| +functionWithoutProto.__proto__ = function() {};
|
| +assertEquals(functionWithoutProto.prototype, obj.prototype);
|
|
|