History

Typed arrays bug fixing

Atlante45 committed 12 years ago

Commit 3070ac41 parent ff378b62 files · +21 −16Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 2 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+18−10
@@ -97,11 +97,15 @@ ScriptEngine::ScriptEngine(const QString& scriptContents, const QString& fileNam · 96 unmodified lines
9797 _arrayBufferClass(NULL)
9898 {
9999 _arrayBufferClass = new ArrayBufferClass(this);
100− qDebug() << "Engine: " << this;
101− qDebug() << "ArrayBuffer: " <<_arrayBufferClass;
102− qDebug() << "DataView: " << new DataViewClass(this);
103− qDebug() << "Int8Array: " << new Int8ArrayClass(this);
104− qDebug() << "Initial thread: " << QThread::currentThread() << " " << thread();
100+ new DataViewClass(this);
101+ new Int8ArrayClass(this);
102+ new Uint8ArrayClass(this);
103+ new Int16ArrayClass(this);
104+ new Uint16ArrayClass(this);
105+ new Int32ArrayClass(this);
106+ new Uint32ArrayClass(this);
107+ new Float32ArrayClass(this);
108+ new Float64ArrayClass(this);
105109 }
106110
107111 ScriptEngine::ScriptEngine(const QUrl& scriptURL,
@@ -134,11 +138,15 @@ ScriptEngine::ScriptEngine(const QUrl& scriptURL, · 26 unmodified lines
134138 QUrl url(scriptURL);
135139
136140 _arrayBufferClass = new ArrayBufferClass(this);
137− qDebug() << "Engine: " << this;
138− qDebug() << "ArrayBuffer: " <<_arrayBufferClass;
139− qDebug() << "DataView: " << new DataViewClass(this);
140− qDebug() << "Int8Array: " << new Int8ArrayClass(this);
141− qDebug() << "Initial thread: " << QThread::currentThread() << " " << thread();
141+ new DataViewClass(this);
142+ new Int8ArrayClass(this);
143+ new Uint8ArrayClass(this);
144+ new Int16ArrayClass(this);
145+ new Uint16ArrayClass(this);
146+ new Int32ArrayClass(this);
147+ new Uint32ArrayClass(this);
148+ new Float32ArrayClass(this);
149+ new Float64ArrayClass(this);
142150
143151 // if the scheme length is one or lower, maybe they typed in a file, let's try
144152 const int WINDOWS_DRIVE_LETTER_SIZE = 1;