Bug 1260116 - Replace String.prototype.contains with String.prototype.includes. r=jlong
authorJason Laster <jlaster@mozilla.com>
Mon, 28 Mar 2016 06:07:00 +0200
changeset 290854 078fb73f17c26edffad5a5051991771e14f94d35
parent 290853 55a506e5ae4ed3dc008be28a812ca4c0e45be7be
child 290855 5a79fb92dd005dbf7bcc250635c55cbcfab7d470
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlong
bugs1260116
milestone48.0a1
Bug 1260116 - Replace String.prototype.contains with String.prototype.includes. r=jlong
devtools/client/sourceeditor/debugger.js
--- a/devtools/client/sourceeditor/debugger.js
+++ b/devtools/client/sourceeditor/debugger.js
@@ -114,17 +114,17 @@ function hasBreakpoint(ctx, line) {
   // In some rare occasions CodeMirror might not be properly initialized yet, so
   // return an exceptional value in that case.
   if (cm.lineInfo(line) === null) {
     return null;
   }
   let markers = cm.lineInfo(line).wrapClass;
 
   return markers != null &&
-         markers.contains("breakpoint");
+         markers.includes("breakpoint");
 }
 
 /**
  * Adds a visual breakpoint for a specified line. Third
  * parameter 'cond' can hold any object.
  *
  * After adding a breakpoint, this function makes Editor to
  * emit a breakpointAdded event.