Changeset 272139 in webkit
- Timestamp:
- Feb 1, 2021 3:04:22 AM (18 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 24 edited
-
JSTests/ChakraCore/test/Error/NativeErrors_v4.baseline-jsc (modified) (6 diffs)
-
JSTests/ChakraCore/test/Error/validate_line_column.baseline-jsc (modified) (1 diff)
-
JSTests/ChakraCore/test/StackTrace/FunctionName.js.baseline-jsc (modified) (1 diff)
-
JSTests/ChakraCore/test/fieldopts/fieldhoist6.baseline-jsc (modified) (1 diff)
-
JSTests/ChakraCore/test/fieldopts/fieldhoist6b.baseline-jsc (modified) (1 diff)
-
JSTests/ChakraCore/test/fieldopts/fieldhoist7.baseline-jsc (modified) (1 diff)
-
JSTests/ChakraCore/test/fieldopts/fieldhoist_negzero.baseline-jsc (modified) (1 diff)
-
JSTests/ChakraCore/test/fieldopts/fieldhoist_undefined_global.baseline-jsc (modified) (1 diff)
-
JSTests/ChakraCore/test/fieldopts/fieldhoist_unreachable.baseline-jsc (modified) (1 diff)
-
JSTests/ChangeLog (modified) (1 diff)
-
JSTests/stress/error-stack-at.js (added)
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/inspector/model/remote-object/error-expected.txt (modified) (3 diffs)
-
LayoutTests/inspector/unit-tests/globals-unhandled-rejection-in-timer-callback-expected.txt (modified) (1 diff)
-
LayoutTests/js/dom/line-column-numbers-expected.txt (modified) (6 diffs)
-
LayoutTests/js/dom/script-tests/stack-trace.js (modified) (1 diff)
-
LayoutTests/js/dom/stack-trace-expected.txt (modified) (3 diffs)
-
LayoutTests/js/script-tests/stack-trace.js (modified) (1 diff)
-
LayoutTests/js/stack-trace-expected.txt (modified) (3 diffs)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/runtime/StackFrame.cpp (modified) (1 diff)
-
Source/WebInspectorUI/ChangeLog (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Models/StackTrace.js (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChakraCore/test/Error/NativeErrors_v4.baseline-jsc
r250436 r272139 2 2 description = (undefined)undefined 3 3 number = (undefined)undefined 4 stack = (string) eval code 4 stack = (string) eval code@ 5 5 eval@[native code] 6 6 Test@NativeErrors.js:49:20 … … 11 11 description = (undefined)undefined 12 12 number = (undefined)undefined 13 stack = (string) eval code 13 stack = (string) eval code@ 14 14 eval@[native code] 15 15 Test@NativeErrors.js:49:20 … … 20 20 description = (undefined)undefined 21 21 number = (undefined)undefined 22 stack = (string) eval code 22 stack = (string) eval code@ 23 23 eval@[native code] 24 24 Test@NativeErrors.js:49:20 … … 29 29 description = (undefined)undefined 30 30 number = (undefined)undefined 31 stack = (string) eval code 31 stack = (string) eval code@ 32 32 eval@[native code] 33 33 Test@NativeErrors.js:49:20 … … 38 38 description = (undefined)undefined 39 39 number = (undefined)undefined 40 stack = (string) eval code 40 stack = (string) eval code@ 41 41 eval@[native code] 42 42 Test@NativeErrors.js:49:20 … … 47 47 description = (undefined)undefined 48 48 number = (undefined)undefined 49 stack = (string) eval code 49 stack = (string) eval code@ 50 50 eval@[native code] 51 51 Test@NativeErrors.js:49:20 -
trunk/JSTests/ChakraCore/test/Error/validate_line_column.baseline-jsc
r205387 r272139 1 validate_line_column.js:17:91 @validate_line_column.js:17:9 2 2 foo@validate_line_column.js:10:17 3 3 global code@validate_line_column.js:16:4 4 validate_line_column.js:21:114 @validate_line_column.js:21:11 5 5 foo@validate_line_column.js:10:17 6 6 global code@validate_line_column.js:20:4 7 validate_line_column.js:26:77 @validate_line_column.js:26:7 8 8 foo@validate_line_column.js:10:17 9 9 global code@validate_line_column.js:24:4 10 validate_line_column.js:30:1410 @validate_line_column.js:30:14 11 11 foo@validate_line_column.js:10:17 12 12 global code@validate_line_column.js:29:4 13 validate_line_column.js:35:713 @validate_line_column.js:35:7 14 14 foo@validate_line_column.js:10:17 15 15 global code@validate_line_column.js:33:4 16 validate_line_column.js:40:716 @validate_line_column.js:40:7 17 17 foo@validate_line_column.js:10:17 18 18 global code@validate_line_column.js:38:4 19 validate_line_column.js:45:719 @validate_line_column.js:45:7 20 20 foo@validate_line_column.js:10:17 21 21 global code@validate_line_column.js:43:4 22 validate_line_column.js:50:722 @validate_line_column.js:50:7 23 23 foo@validate_line_column.js:10:17 24 24 global code@validate_line_column.js:48:4 25 validate_line_column.js:55:725 @validate_line_column.js:55:7 26 26 foo@validate_line_column.js:10:17 27 27 global code@validate_line_column.js:53:4 28 validate_line_column.js:60:928 @validate_line_column.js:60:9 29 29 foo@validate_line_column.js:10:17 30 30 global code@validate_line_column.js:58:4 -
trunk/JSTests/ChakraCore/test/StackTrace/FunctionName.js.baseline-jsc
r205387 r272139 1 1 foo@FunctionName.js:24:24 2 2 func@FunctionName.js:28:12 3 anonymous 4 eval code 3 anonymous@ 4 eval code@ 5 5 eval@[native code] 6 FunctionName.js:35:176 @FunctionName.js:35:17 7 7 bar@FunctionName.js:36:11 8 8 global code@FunctionName.js:39:8 -
trunk/JSTests/ChakraCore/test/fieldopts/fieldhoist6.baseline-jsc
r205387 r272139 1 1 Exception: ReferenceError: Can't find variable: f 2 fieldhoist6.js:13:62 @fieldhoist6.js:13:6 3 3 global code@fieldhoist6.js:20:3 -
trunk/JSTests/ChakraCore/test/fieldopts/fieldhoist6b.baseline-jsc
r205387 r272139 1 1 Exception: ReferenceError: Can't find variable: f 2 fieldhoist6b.js:13:62 @fieldhoist6b.js:13:6 3 3 global code@fieldhoist6b.js:20:3 -
trunk/JSTests/ChakraCore/test/fieldopts/fieldhoist7.baseline-jsc
r205387 r272139 1 1 Exception: ReferenceError: Can't find variable: obj3 2 fieldhoist7.js:7:322 @fieldhoist7.js:7:32 3 3 global code@fieldhoist7.js:18:3 -
trunk/JSTests/ChakraCore/test/fieldopts/fieldhoist_negzero.baseline-jsc
r205387 r272139 1 1 Exception: ReferenceError: Can't find variable: obj0 2 fieldhoist_negzero.js:9:322 @fieldhoist_negzero.js:9:32 3 3 global code@fieldhoist_negzero.js:12:3 -
trunk/JSTests/ChakraCore/test/fieldopts/fieldhoist_undefined_global.baseline-jsc
r205387 r272139 1 1 Exception: ReferenceError: Can't find variable: d 2 fieldhoist_undefined_global.js:12:102 @fieldhoist_undefined_global.js:12:10 3 3 global code@fieldhoist_undefined_global.js:15:3 -
trunk/JSTests/ChakraCore/test/fieldopts/fieldhoist_unreachable.baseline-jsc
r205387 r272139 1 1 Exception: ReferenceError: Can't find variable: obj9 2 fieldhoist_unreachable.js:13:92 @fieldhoist_unreachable.js:13:9 3 3 global code@fieldhoist_unreachable.js:15:3 -
trunk/JSTests/ChangeLog
r272127 r272139 1 2021-02-01 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Add @ in Error.stack if URL exists 4 https://bugs.webkit.org/show_bug.cgi?id=221184 5 6 Reviewed by Keith Miller. 7 8 * ChakraCore/test/Error/NativeErrors_v4.baseline-jsc: 9 * ChakraCore/test/Error/validate_line_column.baseline-jsc: 10 * ChakraCore/test/StackTrace/FunctionName.js.baseline-jsc: 11 * ChakraCore/test/fieldopts/fieldhoist6.baseline-jsc: 12 * ChakraCore/test/fieldopts/fieldhoist6b.baseline-jsc: 13 * ChakraCore/test/fieldopts/fieldhoist7.baseline-jsc: 14 * ChakraCore/test/fieldopts/fieldhoist_negzero.baseline-jsc: 15 * ChakraCore/test/fieldopts/fieldhoist_undefined_global.baseline-jsc: 16 * ChakraCore/test/fieldopts/fieldhoist_unreachable.baseline-jsc: 17 * stress/error-stack-at.js: Added. 18 (shouldBe): 19 (catch): 20 (try.eval): 21 1 22 2021-01-31 Yusuke Suzuki <ysuzuki@apple.com> 2 23 -
trunk/LayoutTests/ChangeLog
r272125 r272139 1 2021-02-01 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Add @ in Error.stack if URL exists 4 https://bugs.webkit.org/show_bug.cgi?id=221184 5 6 Reviewed by Keith Miller. 7 8 * inspector/model/remote-object/error-expected.txt: 9 * inspector/unit-tests/globals-unhandled-rejection-in-timer-callback-expected.txt: 10 * js/dom/line-column-numbers-expected.txt: 11 * js/dom/script-tests/stack-trace.js: 12 (catch): 13 * js/dom/stack-trace-expected.txt: 14 * js/script-tests/stack-trace.js: 15 (catch): 16 * js/stack-trace-expected.txt: 17 1 18 2021-01-31 Sam Weinig <weinig@apple.com> 2 19 -
trunk/LayoutTests/inspector/model/remote-object/error-expected.txt
r252202 r272139 32 32 "_name": "stack", 33 33 "_type": "string", 34 "_value": "global code \nevaluateWithScopeExtension@[native code]\n\n_wrapCall"34 "_value": "global code@\nevaluateWithScopeExtension@[native code]\n@\n_wrapCall@" 35 35 } 36 36 ], … … 71 71 "_name": "stack", 72 72 "_type": "string", 73 "_value": "eval@[native code]\nglobal code \nevaluateWithScopeExtension@[native code]\n\n_wrapCall"73 "_value": "eval@[native code]\nglobal code@\nevaluateWithScopeExtension@[native code]\n@\n_wrapCall@" 74 74 } 75 75 ], … … 105 105 "_name": "stack", 106 106 "_type": "string", 107 "_value": "splitText@[native code]\nglobal code \nevaluateWithScopeExtension@[native code]\n\n_wrapCall"107 "_value": "splitText@[native code]\nglobal code@\nevaluateWithScopeExtension@[native code]\n@\n_wrapCall@" 108 108 }, 109 109 { -
trunk/LayoutTests/inspector/unit-tests/globals-unhandled-rejection-in-timer-callback-expected.txt
r210367 r272139 3 3 Unhandled promise rejection in inspector page: This is an exception thrown in the inspector page. 4 4 5 Stack Trace: (suppressed) 5 6 7 -
trunk/LayoutTests/js/dom/line-column-numbers-expected.txt
r267644 r272139 72 72 73 73 --> Case 15 Stack Trace: 74 0 at eval code74 0 eval code at 75 75 1 eval at [native code] 76 76 2 global code at line-column-numbers.html:130:5 77 77 78 78 --> Case 16 Stack Trace: 79 0 at doThrow1680 1 at eval code79 0 doThrow16 at 80 1 eval code at 81 81 2 eval at [native code] 82 82 3 global code at line-column-numbers.html:136:5 … … 84 84 --> Case 17 Stack Trace: 85 85 0 at 86 1 at eval code86 1 eval code at 87 87 2 eval at [native code] 88 88 3 global code at line-column-numbers.html:149:5 … … 90 90 --> Case 18 Stack Trace: 91 91 0 at 92 1 at eval code92 1 eval code at 93 93 2 eval at [native code] 94 94 3 global code at line-column-numbers.html:155:5 … … 214 214 215 215 --> Case 15 Stack Trace: 216 0 at eval code216 0 eval code at 217 217 1 eval at [native code] 218 218 2 global code at line-column-numbers.js:77:5 219 219 220 220 --> Case 16 Stack Trace: 221 0 at doThrow15b222 1 at eval code221 0 doThrow15b at 222 1 eval code at 223 223 2 eval at [native code] 224 224 3 global code at line-column-numbers.js:81:5 … … 226 226 --> Case 17 Stack Trace: 227 227 0 at 228 1 at eval code228 1 eval code at 229 229 2 eval at [native code] 230 230 3 global code at line-column-numbers.js:92:5 … … 232 232 --> Case 18 Stack Trace: 233 233 0 at 234 1 at eval code234 1 eval code at 235 235 2 eval at [native code] 236 236 3 global code at line-column-numbers.js:96:5 -
trunk/LayoutTests/js/dom/script-tests/stack-trace.js
r182495 r272139 127 127 } catch (e) { 128 128 var pattern = [ 129 " at eval code",129 "eval code at ", 130 130 "eval at [native code]", 131 131 "selfRecursive3 at stack-trace.js" -
trunk/LayoutTests/js/dom/stack-trace-expected.txt
r206660 r272139 11 11 --> Stack Trace: 12 12 0 inner at stack-trace.js:81:44 13 1 at eval code13 1 eval code at 14 14 2 eval at [native code] 15 15 3 evaler at stack-trace.js:82:29 … … 19 19 0 inner at stack-trace.js:81:44 20 20 1 outer at stack-trace.js:80:34 21 2 at eval code21 2 eval code at 22 22 3 eval at [native code] 23 23 4 evaler at stack-trace.js:82:29 … … 254 254 255 255 --> Stack Trace matches pattern: 256 0 at eval code256 0 eval code at 257 257 1 eval at [native code] 258 258 2 selfRecursive3 at stack-trace.js -
trunk/LayoutTests/js/script-tests/stack-trace.js
r225129 r272139 130 130 } catch (e) { 131 131 var pattern = [ 132 " at eval code",132 "eval code at ", 133 133 "eval at [native code]", 134 134 "selfRecursive3 at stack-trace.js" -
trunk/LayoutTests/js/stack-trace-expected.txt
r225129 r272139 7 7 --> Stack Trace: 8 8 0 inner at stack-trace.js:84:44 9 1 at eval code9 1 eval code at 10 10 2 eval at [native code] 11 11 3 evaler at stack-trace.js:85:29 … … 15 15 0 inner at stack-trace.js:84:44 16 16 1 outer at stack-trace.js:83:34 17 2 at eval code17 2 eval code at 18 18 3 eval at [native code] 19 19 4 evaler at stack-trace.js:85:29 … … 246 246 247 247 --> Stack Trace matches pattern: 248 0 at eval code248 0 eval code at 249 249 1 eval at [native code] 250 250 2 selfRecursive3 at stack-trace.js -
trunk/Source/JavaScriptCore/ChangeLog
r272119 r272139 1 2021-02-01 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Add @ in Error.stack if URL exists 4 https://bugs.webkit.org/show_bug.cgi?id=221184 5 6 Reviewed by Keith Miller. 7 8 Append '@' if URL exists even if function name does not exist to make the 9 format simple for parsing in JS (splitting with '@' to extract URL and function name). 10 11 * runtime/StackFrame.cpp: 12 (JSC::StackFrame::toString const): 13 1 14 2021-01-30 Yusuke Suzuki <ysuzuki@apple.com> 2 15 -
trunk/Source/JavaScriptCore/runtime/StackFrame.cpp
r261895 r272139 125 125 String sourceURL = this->sourceURL(); 126 126 traceBuild.append(functionName); 127 traceBuild.append('@'); 127 128 if (!sourceURL.isEmpty()) { 128 if (!functionName.isEmpty())129 traceBuild.append('@');130 129 traceBuild.append(sourceURL); 131 130 if (hasLineAndColumnInfo()) { -
trunk/Source/WebInspectorUI/ChangeLog
r271953 r272139 1 2021-02-01 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Add @ in Error.stack if URL exists 4 https://bugs.webkit.org/show_bug.cgi?id=221184 5 6 Reviewed by Keith Miller. 7 8 * UserInterface/Models/StackTrace.js: 9 (WI.StackTrace.isLikelyStackTrace): 10 1 11 2021-01-27 Razvan Caliman <rcaliman@apple.com> 2 12 -
trunk/Source/WebInspectorUI/UserInterface/Models/StackTrace.js
r253087 r272139 78 78 return false; 79 79 80 if (/^[^a-z$_ ]/i.test(stack[0]))80 if (/^[^a-z$_@]/i.test(stack[0])) 81 81 return false; 82 82 -
trunk/Tools/ChangeLog
r272093 r272139 1 2021-02-01 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Add @ in Error.stack if URL exists 4 https://bugs.webkit.org/show_bug.cgi?id=221184 5 6 Reviewed by Keith Miller. 7 8 * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp: 9 (testJSCExceptions): 10 1 11 2021-01-29 Don Olmstead <don.olmstead@sony.com> 2 12 -
trunk/Tools/TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp
r261159 r272139 2806 2806 g_assert_cmpuint(jsc_exception_get_column_number(exception), ==, 4); 2807 2807 g_assert_null(jsc_exception_get_source_uri(exception)); 2808 g_assert_cmpstr(jsc_exception_get_backtrace_string(exception), ==, "global code ");2808 g_assert_cmpstr(jsc_exception_get_backtrace_string(exception), ==, "global code@"); 2809 2809 GUniquePtr<char> errorString(jsc_exception_to_string(exception)); 2810 2810 g_assert_cmpstr(errorString.get(), ==, "ReferenceError: Can't find variable: foo"); 2811 2811 GUniquePtr<char> reportString(jsc_exception_report(exception)); 2812 g_assert_cmpstr(reportString.get(), ==, ":1:4 ReferenceError: Can't find variable: foo\n global code \n");2812 g_assert_cmpstr(reportString.get(), ==, ":1:4 ReferenceError: Can't find variable: foo\n global code@\n"); 2813 2813 2814 2814 jsc_context_clear_exception(context.get()); … … 2903 2903 g_assert_cmpuint(jsc_exception_get_column_number(exception), ==, 24); 2904 2904 g_assert_null(jsc_exception_get_source_uri(exception)); 2905 g_assert_cmpstr(jsc_exception_get_backtrace_string(exception), ==, "createError@[native code]\nglobal code ");2905 g_assert_cmpstr(jsc_exception_get_backtrace_string(exception), ==, "createError@[native code]\nglobal code@"); 2906 2906 GUniquePtr<char> errorString(jsc_exception_to_string(exception)); 2907 2907 g_assert_cmpstr(errorString.get(), ==, "Error: API exception"); 2908 2908 GUniquePtr<char> reportString(jsc_exception_report(exception)); 2909 g_assert_cmpstr(reportString.get(), ==, ":1:24 Error: API exception\n createError@[native code]\n global code \n");2909 g_assert_cmpstr(reportString.get(), ==, ":1:24 Error: API exception\n createError@[native code]\n global code@\n"); 2910 2910 2911 2911 jsc_context_clear_exception(context.get()); … … 2934 2934 g_assert_cmpuint(jsc_exception_get_column_number(exception), ==, 30); 2935 2935 g_assert_null(jsc_exception_get_source_uri(exception)); 2936 g_assert_cmpstr(jsc_exception_get_backtrace_string(exception), ==, "createCustomError@[native code]\nglobal code ");2936 g_assert_cmpstr(jsc_exception_get_backtrace_string(exception), ==, "createCustomError@[native code]\nglobal code@"); 2937 2937 GUniquePtr<char> errorString(jsc_exception_to_string(exception)); 2938 2938 g_assert_cmpstr(errorString.get(), ==, "CustomAPIError: API custom exception"); 2939 2939 GUniquePtr<char> reportString(jsc_exception_report(exception)); 2940 g_assert_cmpstr(reportString.get(), ==, ":1:30 CustomAPIError: API custom exception\n createCustomError@[native code]\n global code \n");2940 g_assert_cmpstr(reportString.get(), ==, ":1:30 CustomAPIError: API custom exception\n createCustomError@[native code]\n global code@\n"); 2941 2941 2942 2942 jsc_context_clear_exception(context.get()); … … 2965 2965 g_assert_cmpuint(jsc_exception_get_column_number(exception), ==, 33); 2966 2966 g_assert_null(jsc_exception_get_source_uri(exception)); 2967 g_assert_cmpstr(jsc_exception_get_backtrace_string(exception), ==, "createFormattedError@[native code]\nglobal code ");2967 g_assert_cmpstr(jsc_exception_get_backtrace_string(exception), ==, "createFormattedError@[native code]\nglobal code@"); 2968 2968 GUniquePtr<char> errorString(jsc_exception_to_string(exception)); 2969 2969 g_assert_cmpstr(errorString.get(), ==, "Error: API exception: error details"); 2970 2970 GUniquePtr<char> reportString(jsc_exception_report(exception)); 2971 g_assert_cmpstr(reportString.get(), ==, ":1:33 Error: API exception: error details\n createFormattedError@[native code]\n global code \n");2971 g_assert_cmpstr(reportString.get(), ==, ":1:33 Error: API exception: error details\n createFormattedError@[native code]\n global code@\n"); 2972 2972 2973 2973 jsc_context_clear_exception(context.get()); … … 2996 2996 g_assert_cmpuint(jsc_exception_get_column_number(exception), ==, 39); 2997 2997 g_assert_null(jsc_exception_get_source_uri(exception)); 2998 g_assert_cmpstr(jsc_exception_get_backtrace_string(exception), ==, "createCustomFormattedError@[native code]\nglobal code ");2998 g_assert_cmpstr(jsc_exception_get_backtrace_string(exception), ==, "createCustomFormattedError@[native code]\nglobal code@"); 2999 2999 GUniquePtr<char> errorString(jsc_exception_to_string(exception)); 3000 3000 g_assert_cmpstr(errorString.get(), ==, "CustomFormattedAPIError: API custom exception: error details"); 3001 3001 GUniquePtr<char> reportString(jsc_exception_report(exception)); 3002 g_assert_cmpstr(reportString.get(), ==, ":1:39 CustomFormattedAPIError: API custom exception: error details\n createCustomFormattedError@[native code]\n global code \n");3002 g_assert_cmpstr(reportString.get(), ==, ":1:39 CustomFormattedAPIError: API custom exception: error details\n createCustomFormattedError@[native code]\n global code@\n"); 3003 3003 3004 3004 jsc_context_clear_exception(context.get());
Note: See TracChangeset
for help on using the changeset viewer.