Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: autotest/abprewrite_source.js

Issue 29354754: Issue 4467 - Fixed hex encoding of characters in string literal and adjusted tests for newer Spider… (Closed) Base URL: https://hg.adblockplus.org/jshydra
Patch Set: Created Sept. 23, 2016, 10:50 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | autotest/test_abprewrite.js.expected » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autotest/abprewrite_source.js
===================================================================
--- a/autotest/abprewrite_source.js
+++ b/autotest/abprewrite_source.js
@@ -1,84 +1,86 @@
const Cc = Components.classes
const Ci = Components.interfaces;
const Cu = Components.utils;
const Cr = Components.results;
const Cl = Components.unknown;
Cu.import("foo/bar.jsm");
+"foo \x2B bar \n\r\x02\x0F\x1E";
+
let {Utils} = require("utils");
let {Filter, BlockingFilter} = require("filterClasses");
-let foo;
+let foovar;
let bar = 2;
var bas;
const FOO = "FOO";
let [a, b] = foo();
[a, b] = [1, 2];
-let {x: y} = foo();
+let {x: prop} = foo();
let {k1: v1, k2: v2} = foo();
for (let v of fooList)
alert(v);
-for (let [a, b] of fooList)
+for (let [i1, i2] of fooList)
{
- a += b;
- b -= a;
+ i1 += i2;
+ i2 -= i1;
}
-for (let [a, b] of fooList);
+for (let [j1, j2] of fooList);
for (k of fooList)
alert(k);
-let a = function() { return 1; };
-let b = {
+let arrow = () => 1;
+let getter = {
get foo() { return 1; }
};
function foo()
{
return {foo: 1, bar: 2};
}
if (a == b)
foo();
else if (a == c)
bar();
else
bas();
if (a == b);
-for (let a = 0; a < b.length; a++)
+for (let x = 0; x < b.length; x++)
foo();
-for (var a = 0; a < b.length; a++);
+for (var y = 0; y < b.length; y++);
-for (let a in b)
+for (let i in b)
foo();
-for (var a in b);
+for (var j in b);
while (a==b)
foo();
while (a==b);
-function genFunc()
+function* genFunc()
{
for (var i = 0; i < 10; i++)
{
yield i;
}
}
-var a = function()
+var func = function*()
{
for (var i = 0; i < 10; i++)
{
yield i;
}
};
let x = (y) => y + 1;
« no previous file with comments | « no previous file | autotest/test_abprewrite.js.expected » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld