escargot/src/runtime/VMInstance.cpp
seonghyun kim 9405b56d82 1. fix setting array length bug
2. optimze reduce array length
3. implement escape, unescape
4. implement rest of Array.prototype builtin functions

this patch pass all of test262(5.1)

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-01-04 12:35:54 +00:00

18 lines
378 B
C++

#include "Escargot.h"
#include "VMInstance.h"
namespace Escargot {
VMInstance::VMInstance()
{
std::setlocale(LC_ALL, "en_US.utf8");
// if you don't use localtime() or timegm() or etc. you should call tzset() to use tzname[]
tzset();
m_timezone = nullptr;
if (getenv("TZ")) {
m_timezoneID = getenv("TZ");
}
m_timezoneID = "US/Pacific";
}
}