Changeset 91116 in webkit
- Timestamp:
- Jul 15, 2011 3:03:09 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r91114 r91116 1 2011-07-15 Gavin Barraclough <barraclough@apple.com> 2 3 NativeError.prototype objects have [[Class]] of "Object" but should be "Error" 4 https://bugs.webkit.org/show_bug.cgi?id=55346 5 6 Reviewed by Sam Weinig. 7 8 Added test case. 9 10 * fast/js/native-error-prototype-expected.txt: Added. 11 * fast/js/native-error-prototype.html: Added. 12 * fast/js/script-tests/native-error-prototype.js: Added. 13 1 14 2011-06-27 Adrienne Walker <enne@google.com> 2 15 -
trunk/Source/JavaScriptCore/ChangeLog
r91115 r91116 1 2011-07-15 Gavin Barraclough <barraclough@apple.com> 2 3 NativeError.prototype objects have [[Class]] of "Object" but should be "Error" 4 https://bugs.webkit.org/show_bug.cgi?id=55346 5 6 Reviewed by Sam Weinig. 7 8 * runtime/ErrorPrototype.cpp: 9 (JSC::ErrorPrototype::ErrorPrototype): 10 - Switch to putDirect since we're not the only ones tranitioning this Structure now. 11 * runtime/NativeErrorPrototype.cpp: 12 (JSC::NativeErrorPrototype::NativeErrorPrototype): 13 * runtime/NativeErrorPrototype.h: 14 - Switch base class to ErrorPrototype. 15 1 16 2011-07-15 Gavin Barraclough <barraclough@apple.com> 2 17 -
trunk/Source/JavaScriptCore/runtime/ErrorPrototype.cpp
r86730 r91116 54 54 : ErrorInstance(&exec->globalData(), structure) 55 55 { 56 putDirect WithoutTransition(exec->globalData(), exec->propertyNames().name, jsNontrivialString(exec, "Error"), DontEnum);56 putDirect(exec->globalData(), exec->propertyNames().name, jsNontrivialString(exec, "Error"), DontEnum); 57 57 58 58 ASSERT(inherits(&s_info)); -
trunk/Source/JavaScriptCore/runtime/NativeErrorPrototype.cpp
r88559 r91116 22 22 #include "NativeErrorPrototype.h" 23 23 24 #include "ErrorPrototype.h"25 24 #include "JSGlobalObject.h" 26 25 #include "JSString.h" … … 33 32 34 33 NativeErrorPrototype::NativeErrorPrototype(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, const UString& nameAndMessage, NativeErrorConstructor* constructor) 35 : JSObjectWithGlobalObject(globalObject, structure)34 : ErrorPrototype(exec, globalObject, structure) 36 35 { 37 36 putDirect(exec->globalData(), exec->propertyNames().name, jsString(exec, nameAndMessage), DontEnum); -
trunk/Source/JavaScriptCore/runtime/NativeErrorPrototype.h
r84052 r91116 22 22 #define NativeErrorPrototype_h 23 23 24 #include " JSObjectWithGlobalObject.h"24 #include "ErrorPrototype.h" 25 25 26 26 namespace JSC { 27 27 class NativeErrorConstructor; 28 28 29 class NativeErrorPrototype : public JSObjectWithGlobalObject{29 class NativeErrorPrototype : public ErrorPrototype { 30 30 public: 31 31 NativeErrorPrototype(ExecState*, JSGlobalObject*, Structure*, const UString&, NativeErrorConstructor*);
Note: See TracChangeset
for help on using the changeset viewer.