History

Code cleanup

ksuprynowicz committed 3 years ago

Commit 5050cc91 parent d24038629 files · +57 −951Browse files

Showing the changes to libraries/script-engine/src/v8/ScriptValueIteratorV8Wrapper.cpp (1 of 29 files). Show all

Unified · Split

libraries/script-engine/src/v8/ScriptValueIteratorV8Wrapper.cpp+0−3
@@ -20,7 +20,6 @@ V8ScriptValueIterator::V8ScriptValueIterator(ScriptEngineV8* engine, v8::Local<v · 19 unmodified lines
2020 v8::Locker locker(isolate);
2121 v8::Isolate::Scope isolateScope(isolate);
2222 v8::HandleScope handleScope(isolate);
23− // V8TODO Is this necessary?
2423 _context.Reset(isolate, _engine->getContext());
2524 auto context = _context.Get(isolate);
2625 v8::Context::Scope contextScope(context);
@@ -83,7 +82,6 @@ V8ScriptValue V8ScriptValueIterator::value() { · 56 unmodified lines
8382 if (!_object.Get(isolate)->Get(context, propertyName->ToString(context).ToLocalChecked()).ToLocal(&v8Value)) {
8483 Q_ASSERT(false);
8584 }
86− //V8TODO: sometimes no value gets written to v8Value. This needs to be investigated and fixed.
8785 if (v8Value.IsEmpty()) {
8886 qDebug() << "V8ScriptValueIterator::value: value handle is empty for key: " << *v8::String::Utf8Value(isolate, propertyName->ToString(context).ToLocalChecked());
8987 v8Value = v8::Undefined(isolate);
@@ -93,7 +91,6 @@ V8ScriptValue V8ScriptValueIterator::value() { · 3 unmodified lines
9391
9492 ScriptValue::PropertyFlags ScriptValueIteratorV8Wrapper::flags() const {
9593 //V8TODO
96− //return (ScriptValue::PropertyFlags)(int)_value.flags();
9794 return ScriptValue::PropertyFlags();
9895 }
9996