Change-Id: I6112fa63cb7e3a113961b758e24f84c77436a45d
Signed-off-by: Ryan Choi <ryan.choi@samsung.com>
private:
void Initialize(Isolate* isolate);
- bool has_lock_;
- bool top_level_;
- internal::Isolate* isolate_;
+ bool has_lock_ = false;
+ bool top_level_ = true;
+ internal::Isolate* isolate_ = nullptr;
};
/**
Local<v8::Array> v8::Array::New(Isolate* isolate, int length) {
API_ENTER_NO_EXCEPTION(isolate);
auto lwContext = lwIsolate->GetCurrentContext();
- uint64_t len = length;
- if (length < 0) {
- len = 0;
+ uint64_t len = 0;
+ if (length > 0) {
+ len = length;
}
auto r = Evaluator::execute(