NativeError.prototype objects have [[Class]] of "Object" but should be "Error"
[WebKit-https.git] / Source / JavaScriptCore / runtime / ErrorPrototype.cpp
index 2a513d59c7ae9ff12695098d08f77fc4916656e1..ab0f4b90d5b07656d6b575f9d2be6b94acc9c454 100644 (file)
@@ -53,7 +53,7 @@ ASSERT_CLASS_FITS_IN_CELL(ErrorPrototype);
 ErrorPrototype::ErrorPrototype(ExecState* exec, JSGlobalObject* globalObject, Structure* structure)
     : ErrorInstance(&exec->globalData(), structure)
 {
-    putDirectWithoutTransition(exec->globalData(), exec->propertyNames().name, jsNontrivialString(exec, "Error"), DontEnum);
+    putDirect(exec->globalData(), exec->propertyNames().name, jsNontrivialString(exec, "Error"), DontEnum);
 
     ASSERT(inherits(&s_info));
     putAnonymousValue(globalObject->globalData(), 0, globalObject);