| Index: test/mjsunit/regress/regress-2408.js
|
| diff --git a/src/platform-posix.h b/test/mjsunit/regress/regress-2408.js
|
| similarity index 82%
|
| copy from src/platform-posix.h
|
| copy to test/mjsunit/regress/regress-2408.js
|
| index 7a982ed2ef3080dad77860d6f46b356a9067bf3b..dfd7c293d0921b25da11407b3cff101f4d9bb414 100644
|
| --- a/src/platform-posix.h
|
| +++ b/test/mjsunit/regress/regress-2408.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_
|
| +// The "Next Line (NEL)" character has the "White_Space" property according to
|
| +// Unicode 6.1 but does not belong to the "Zs" category. Hence ECMA-262 5.1
|
| +// specifies to not trim this character.
|
|
|
| -namespace v8 {
|
| -namespace internal {
|
| -
|
| -// Used by platform implementation files during OS::PostSetUp().
|
| -void POSIXPostSetUp();
|
| -
|
| -} } // namespace v8::internal
|
| -
|
| -#endif // V8_PLATFORM_POSIX_H_
|
| +assertEquals('\u0085'.trim(), '\u0085');
|
| +assertEquals('\u0085'.trimLeft(), '\u0085');
|
| +assertEquals('\u0085'.trimRight(), '\u0085');
|
|
|