Skip to content

Commit

Permalink
Do not use non-standard flag argument of String.prototype.replace in …
Browse files Browse the repository at this point in the history
…testing/web-platform/tests/.

Upstreamed from https://bugzilla.mozilla.org/show_bug.cgi?id=1108382
  • Loading branch information
arai-a authored and jgraham committed Mar 10, 2015
1 parent bcc22cc commit 8ba8a49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ambient-light/idlharness.html
Expand Up @@ -45,7 +45,7 @@
"use strict";
var idl_array = new IdlArray();
// replace 'EventHandler' and 'unrestricted double' unrecognised by idlharness.js
var idls = document.getElementById('idl').textContent.replace('EventHandler', 'Function?', 'g').replace('unrestricted double', 'double', 'g');
var idls = document.getElementById('idl').textContent.replace(/EventHandler/g, 'Function?').replace(/unrestricted double/g, 'double');

idl_array.add_untested_idls(document.getElementById('untested_idl').textContent);
idl_array.add_idls(idls);
Expand Down
2 changes: 1 addition & 1 deletion proximity/idlharness.html
Expand Up @@ -59,7 +59,7 @@
"use strict";
var idl_array = new IdlArray();
// replace 'EventHandler' and 'unrestricted double' unrecognised by idlharness.js
var idls = document.getElementById('idl').textContent.replace('EventHandler', 'Function?', 'g').replace('unrestricted double', 'double', 'g');
var idls = document.getElementById('idl').textContent.replace(/EventHandler/g, 'Function?').replace(/unrestricted double/g, 'double');

idl_array.add_untested_idls(document.getElementById('untested_idl').textContent);
idl_array.add_idls(idls);
Expand Down

0 comments on commit 8ba8a49

Please sign in to comment.