Changeset 112102 in webkit
- Timestamp:
- Mar 26, 2012 8:30:20 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r112099 r112102 1 2012-03-26 Pavel Feldman <pfeldman@chromium.org> 2 3 Web Inspector: 'use strict' exceptions stop in inspector code 4 https://bugs.webkit.org/show_bug.cgi?id=82199 5 6 Reviewed by Yury Semikhatsky. 7 8 * inspector/console/console-format-collections-expected.txt: 9 * inspector/console/console-format-collections.html: 10 * platform/chromium/inspector/console/console-format-collections-expected.txt: 11 1 12 2012-03-26 Mihai Balan <mibalan@adobe.com> 2 13 -
trunk/LayoutTests/inspector/console/console-format-collections-expected.txt
r111385 r112102 7 7 CONSOLE MESSAGE: line 41: 1,2, 8 8 CONSOLE MESSAGE: line 44: [object Object] 9 CONSOLE MESSAGE: line 51: [object Arguments] 9 10 Tests that console nicely formats HTML Collections and NodeLists. 10 11 … … 19 20 [1, Array[2]] console-format-collections.html:41 20 21 NonArrayWithLength console-format-collections.html:44 22 [1, "2"] console-format-collections.html:51 21 23 -
trunk/LayoutTests/inspector/console/console-format-collections.html
r111385 r112102 44 44 console.log(nonArray); 45 45 46 // Arguments 47 function generateArguments(foo, bar) 48 { 49 return arguments; 50 } 51 console.log(generateArguments(1, "2")); 46 52 runTest(); 47 53 } -
trunk/LayoutTests/platform/chromium/inspector/console/console-format-collections-expected.txt
r111385 r112102 7 7 CONSOLE MESSAGE: line 41: 1,2, 8 8 CONSOLE MESSAGE: line 44: [object Object] 9 CONSOLE MESSAGE: line 51: [object Arguments] 9 10 Tests that console nicely formats HTML Collections and NodeLists. 10 11 … … 19 20 [1, Array[2]] console-format-collections.html:41 20 21 NonArrayWithLength console-format-collections.html:44 22 [1, "2"] console-format-collections.html:51 21 23 -
trunk/Source/WebCore/ChangeLog
r112099 r112102 1 2012-03-26 Pavel Feldman <pfeldman@chromium.org> 2 3 Web Inspector: 'use strict' exceptions stop in inspector code 4 https://bugs.webkit.org/show_bug.cgi?id=82199 5 6 Reviewed by Yury Semikhatsky. 7 8 Accessing callee from within InjectedScript made inspector stop on handled exceptions. 9 I replaced it with Object.prototype.toString.call(obj) === "[object Arguments]". 10 11 * inspector/InjectedScriptSource.js: 12 1 13 2012-03-26 Mihai Balan <mibalan@adobe.com> 2 14 -
trunk/Source/WebCore/inspector/InjectedScriptSource.js
r111529 r112102 425 425 if (typeof obj.splice === "function" && isFinite(obj.length)) 426 426 return "array"; 427 if ( typeof obj.callee === "function" && isFinite(obj.length)) // arguments.427 if (Object.prototype.toString.call(obj) === "[object Arguments]" && isFinite(obj.length)) // arguments. 428 428 return "array"; 429 429 } catch (e) {
Note: See TracChangeset
for help on using the changeset viewer.