Changeset 106414 in webkit
- Timestamp:
- Jan 31, 2012 5:18:38 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106413 r106414 1 2012-01-31 Oliver Hunt <oliver@apple.com> 2 3 Remove unneeded sourceId property 4 https://bugs.webkit.org/show_bug.cgi?id=77495 5 6 Reviewed by Filip Pizlo. 7 8 Update the test for the removal of sourceId 9 10 * fast/js/exception-properties-expected.txt: 11 * fast/js/script-tests/exception-properties.js: 12 1 13 2012-01-31 Yuzo Fujishima <yuzo@google.com> 2 14 -
trunk/LayoutTests/fast/js/exception-properties-expected.txt
r106407 r106414 5 5 6 6 PASS enumerableProperties(error) is [] 7 PASS enumerableProperties(nativeError) is ["line", "source Id", "sourceURL", "stack"]7 PASS enumerableProperties(nativeError) is ["line", "sourceURL", "stack"] 8 8 PASS Object.getPrototypeOf(nativeError).name is "RangeError" 9 9 PASS Object.getPrototypeOf(nativeError).message is "" -
trunk/LayoutTests/fast/js/script-tests/exception-properties.js
r106407 r106414 17 17 18 18 shouldBe('enumerableProperties(error)', '[]'); 19 shouldBe('enumerableProperties(nativeError)', '["line", "source Id", "sourceURL", "stack"]');19 shouldBe('enumerableProperties(nativeError)', '["line", "sourceURL", "stack"]'); 20 20 21 21 shouldBe('Object.getPrototypeOf(nativeError).name', '"RangeError"'); -
trunk/Source/JavaScriptCore/ChangeLog
r106407 r106414 1 2012-01-31 Oliver Hunt <oliver@apple.com> 2 3 Remove unneeded sourceId property 4 https://bugs.webkit.org/show_bug.cgi?id=77495 5 6 Reviewed by Filip Pizlo. 7 8 sourceId isn't used anymore, so we'll just remove it. 9 10 * runtime/Error.cpp: 11 (JSC): 12 (JSC::addErrorInfo): 13 (JSC::hasErrorInfo): 14 1 15 2012-01-31 Oliver Hunt <oliver@apple.com> 2 16 -
trunk/Source/JavaScriptCore/runtime/Error.cpp
r106407 r106414 40 40 41 41 static const char* linePropertyName = "line"; 42 static const char* sourceIdPropertyName = "sourceId";43 42 static const char* sourceURLPropertyName = "sourceURL"; 44 43 … … 122 121 JSObject* addErrorInfo(JSGlobalData* globalData, JSObject* error, int line, const SourceCode& source, const Vector<StackFrame>& stackTrace) 123 122 { 124 intptr_t sourceID = source.provider()->asID();125 123 const UString& sourceURL = source.provider()->url(); 126 124 127 125 if (line != -1) 128 126 error->putDirect(*globalData, Identifier(globalData, linePropertyName), jsNumber(line), ReadOnly | DontDelete); 129 if (sourceID != -1)130 error->putDirect(*globalData, Identifier(globalData, sourceIdPropertyName), jsNumber((double)sourceID), ReadOnly | DontDelete);131 127 if (!sourceURL.isNull()) 132 128 error->putDirect(*globalData, Identifier(globalData, sourceURLPropertyName), jsString(globalData, sourceURL), ReadOnly | DontDelete); … … 164 160 { 165 161 return error->hasProperty(exec, Identifier(exec, linePropertyName)) 166 || error->hasProperty(exec, Identifier(exec, sourceIdPropertyName))167 162 || error->hasProperty(exec, Identifier(exec, sourceURLPropertyName)); 168 163 }
Note: See TracChangeset
for help on using the changeset viewer.