Skip to content

Commit 4cc58ec

Browse files
committed
Added Float32Array to GlobalObject
1 parent 8bc3be0 commit 4cc58ec

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

JavaScriptCore/runtime/JSGlobalObject.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
#include "StringPrototype.h"
7373
#include "Debugger.h"
7474

75+
// PL Typed Arrays
76+
77+
#include "JSFloat32Array.h"
78+
7579
#include "JSGlobalObject.lut.h"
7680

7781
namespace JSC {
@@ -290,6 +294,12 @@ void JSGlobalObject::reset(JSValue prototype)
290294
putDirectWithoutTransition(exec->globalData(), Identifier(exec, "SyntaxError"), m_syntaxErrorConstructor.get(), DontEnum);
291295
putDirectWithoutTransition(exec->globalData(), Identifier(exec, "TypeError"), m_typeErrorConstructor.get(), DontEnum);
292296
putDirectWithoutTransition(exec->globalData(), Identifier(exec, "URIError"), m_URIErrorConstructor.get(), DontEnum);
297+
298+
299+
// PL Typed Arrays
300+
putDirectWithoutTransition(exec->globalData(), Identifier(exec, WebCore::JSFloat32Array::s_info.className),
301+
WebCore::JSFloat32Array::getConstructor(exec, this), DontEnum);
302+
293303

294304
m_evalFunction.set(exec->globalData(), this, JSFunction::create(exec, this, 1, exec->propertyNames().eval, globalFuncEval));
295305
putDirectWithoutTransition(exec->globalData(), exec->propertyNames().eval, m_evalFunction.get(), DontEnum);

0 commit comments

Comments
 (0)