Skip to content

Commit ad14fce

Browse files
committed
Fixed Uint32Array constructor creating a Float32Array
1 parent 51e1504 commit ad14fce

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

JavaScriptCore/runtime/JSGlobalObject.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,6 @@ void JSGlobalObject::reset(JSValue prototype)
312312
putDirectWithoutTransition(exec->globalData(), Identifier(exec, WebCore::JSFloat32Array::s_info.className),
313313
WebCore::JSFloat32Array::getConstructor(exec, this), DontEnum);
314314

315-
putDirectWithoutTransition(exec->globalData(), Identifier(exec, WebCore::JSFloat32Array::s_info.className),
316-
WebCore::JSFloat32Array::getConstructor(exec, this), DontEnum);
317-
318315
putDirectWithoutTransition(exec->globalData(), Identifier(exec, WebCore::JSFloat64Array::s_info.className),
319316
WebCore::JSFloat64Array::getConstructor(exec, this), DontEnum);
320317

@@ -337,7 +334,7 @@ void JSGlobalObject::reset(JSValue prototype)
337334
WebCore::JSUint16Array::getConstructor(exec, this), DontEnum);
338335

339336
putDirectWithoutTransition(exec->globalData(), Identifier(exec, WebCore::JSUint32Array::s_info.className),
340-
WebCore::JSFloat32Array::getConstructor(exec, this), DontEnum);
337+
WebCore::JSUint32Array::getConstructor(exec, this), DontEnum);
341338

342339

343340
m_evalFunction.set(exec->globalData(), this, JSFunction::create(exec, this, 1, exec->propertyNames().eval, globalFuncEval));

0 commit comments

Comments
 (0)