diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/NativeErrorPrototype.cpp')
-rw-r--r-- | Source/JavaScriptCore/runtime/NativeErrorPrototype.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/runtime/NativeErrorPrototype.cpp b/Source/JavaScriptCore/runtime/NativeErrorPrototype.cpp index 540220a..4e10268 100644 --- a/Source/JavaScriptCore/runtime/NativeErrorPrototype.cpp +++ b/Source/JavaScriptCore/runtime/NativeErrorPrototype.cpp @@ -34,9 +34,9 @@ ASSERT_CLASS_FITS_IN_CELL(NativeErrorPrototype); NativeErrorPrototype::NativeErrorPrototype(ExecState* exec, JSGlobalObject* globalObject, NonNullPassRefPtr<Structure> structure, const UString& nameAndMessage, NativeErrorConstructor* constructor) : JSObjectWithGlobalObject(globalObject, structure) { - putDirect(exec->propertyNames().name, jsString(exec, nameAndMessage), 0); - putDirect(exec->propertyNames().message, jsString(exec, nameAndMessage), 0); - putDirect(exec->propertyNames().constructor, constructor, DontEnum); + putDirect(exec->globalData(), exec->propertyNames().name, jsString(exec, nameAndMessage), 0); + putDirect(exec->globalData(), exec->propertyNames().message, jsString(exec, nameAndMessage), 0); + putDirect(exec->globalData(), exec->propertyNames().constructor, constructor, DontEnum); } } // namespace JSC |