| Index: Source/core/inspector/InjectedScriptCanvasModuleSource.js
|
| diff --git a/Source/core/inspector/InjectedScriptCanvasModuleSource.js b/Source/core/inspector/InjectedScriptCanvasModuleSource.js
|
| index 1170b4b3315b65fcd135cda13821a7f0403b8305..644f691f54c6967816407194368fb860ef820bdc 100644
|
| --- a/Source/core/inspector/InjectedScriptCanvasModuleSource.js
|
| +++ b/Source/core/inspector/InjectedScriptCanvasModuleSource.js
|
| @@ -29,6 +29,11 @@
|
| */
|
|
|
| /**
|
| + * @fileoverview
|
| + * @suppress {es5Strict}
|
| + */
|
| +
|
| +/**
|
| * @param {InjectedScriptHostClass} InjectedScriptHost
|
| * @param {Window} inspectedWindow
|
| * @param {number} injectedScriptId
|
| @@ -3955,16 +3960,17 @@ WebGLCallFormatter.prototype = {
|
|
|
| // Sort to get rid of ambiguity.
|
| for (var value in this._enumValueToNames) {
|
| - var names = this._enumValueToNames[value];
|
| + var numericValue = Number(value);
|
| + var names = this._enumValueToNames[numericValue];
|
| if (names.length > 1) {
|
| // Choose one enum name if possible. For example:
|
| // [BLEND_EQUATION, BLEND_EQUATION_RGB] => BLEND_EQUATION
|
| // [COLOR_ATTACHMENT0, COLOR_ATTACHMENT0_WEBGL] => COLOR_ATTACHMENT0
|
| var common = commonSubstring(names);
|
| if (common)
|
| - this._enumValueToNames[value] = [common];
|
| + this._enumValueToNames[numericValue] = [common];
|
| else
|
| - this._enumValueToNames[value] = names.sort();
|
| + this._enumValueToNames[numericValue] = names.sort();
|
| }
|
| }
|
| },
|
|
|