mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
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>
18 lines
378 B
C++
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";
|
|
}
|
|
}
|