Bug 1275637 - Fix eslint errors in webgl-utils.js. r=jryans
authorTom Tromey <tom@tromey.com>
Wed, 25 May 2016 13:39:18 -0600
changeset 302157 3518b484f82d22c649871deecb5501f7dad0f2a3
parent 302068 3c5025f98e561a20e24d97c91a9e4e0ec28015ea
child 302158 bb9e0276322deeed563438c77495927a3e5b1984
push id78626
push usercbook@mozilla.com
push dateTue, 21 Jun 2016 10:14:39 +0000
treeherdermozilla-inbound@70cb21780f68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjryans
bugs1275637
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1275637 - Fix eslint errors in webgl-utils.js. r=jryans MozReview-Commit-ID: 1T2vOPMAj8G
.eslintignore
devtools/client/shared/webgl-utils.js
--- a/.eslintignore
+++ b/.eslintignore
@@ -89,17 +89,16 @@ devtools/client/netmonitor/test/**
 devtools/client/netmonitor/har/test/**
 devtools/client/performance/**
 devtools/client/projecteditor/**
 devtools/client/promisedebugger/**
 devtools/client/responsivedesign/**
 devtools/client/scratchpad/**
 devtools/client/shadereditor/**
 devtools/client/shared/*.jsm
-devtools/client/shared/webgl-utils.js
 devtools/client/shared/developer-toolbar.js
 devtools/client/shared/components/test/**
 devtools/client/shared/redux/middleware/test/**
 devtools/client/shared/test/**
 devtools/client/shared/widgets/*.jsm
 devtools/client/sourceeditor/**
 devtools/client/webaudioeditor/**
 devtools/client/webconsole/**
--- a/devtools/client/shared/webgl-utils.js
+++ b/devtools/client/shared/webgl-utils.js
@@ -28,17 +28,17 @@ function isWebGLSupportedByGFX() {
   }
   return supported;
 }
 
 function create3DContext(canvas) {
   // try to get a valid context from an existing canvas
   let context = null;
   try {
-    context = canvas.getContext(WEBGL_CONTEXT_NAME, aFlags);
+    context = canvas.getContext(WEBGL_CONTEXT_NAME, undefined);
   } catch (e) {
     return null;
   }
   return context;
 }
 
 function createCanvas(doc) {
   return doc.createElementNS("http://www.w3.org/1999/xhtml", "canvas");