Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: LayoutTests/webexposed/resources/global-interface-listing.js

Issue 1161463009: bindings: Supports [LenientThis] extended attributes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a layout test for [LenientThis]. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/bindings/IDLExtendedAttributes.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webexposed/resources/global-interface-listing.js
diff --git a/LayoutTests/webexposed/resources/global-interface-listing.js b/LayoutTests/webexposed/resources/global-interface-listing.js
index 184fba5cb3ecf046671bc2bfb4d52f8914cd978a..69e101a632078f6c0e4ffcb144d81d7e9b3261c6 100644
--- a/LayoutTests/webexposed/resources/global-interface-listing.js
+++ b/LayoutTests/webexposed/resources/global-interface-listing.js
@@ -41,7 +41,7 @@ interfaceNames.forEach(function(interfaceName) {
var prototype = this[interfaceName].prototype;
Object.getOwnPropertyNames(prototype).forEach(function(propertyName) {
var descriptor = Object.getOwnPropertyDescriptor(prototype, propertyName);
- if (typeof descriptor.value !== 'undefined') {
+ if ('value' in descriptor) {
var type = typeof descriptor.value === 'function' ? 'method' : 'attribute';
propertyStrings.push(' ' + type + ' ' + propertyName);
} else {
« no previous file with comments | « no previous file | Source/bindings/IDLExtendedAttributes.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698