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

Issue 29761612: Issue 6538, 6781 - Implement script compilation for snippets (Closed)

Created:
April 25, 2018, 8:03 p.m. by Manish Jethani
Modified:
July 18, 2018, 10:43 p.m.
Reviewers:
Sebastian Noack, kzar
CC:
sergei, hub, Erik
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

This builds on https://codereview.adblockplus.org/29761597/

Patch Set 1 #

Patch Set 2 : Clean up test #

Patch Set 3 : Test script execution as well #

Total comments: 5

Patch Set 4 : Move compileScript to top level #

Patch Set 5 : Rebase #

Total comments: 20
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -1 line) Patch
M lib/snippets.js View 1 2 3 4 1 chunk +34 lines, -0 lines 17 comments Download
M test/snippets.js View 1 2 3 4 2 chunks +74 lines, -1 line 3 comments Download

Messages

Total messages: 16
Manish Jethani
April 25, 2018, 8:03 p.m. (2018-04-25 20:03:48 UTC) #1
Manish Jethani
Patch Set 1 This builds on https://codereview.adblockplus.org/29737558/ and https://codereview.adblockplus.org/29761597/ See issue description for specification.
April 26, 2018, 12:23 p.m. (2018-04-26 12:23:26 UTC) #2
Manish Jethani
Patch Set 2: Clean up test Patch Set 3: Test script execution as well
April 26, 2018, 12:24 p.m. (2018-04-26 12:24:06 UTC) #3
Manish Jethani
https://codereview.adblockplus.org/29761612/diff/29761623/lib/snippets.js File lib/snippets.js (right): https://codereview.adblockplus.org/29761612/diff/29761623/lib/snippets.js#newcode149 lib/snippets.js:149: let imports = Object.create(null); There's an imports object and ...
April 26, 2018, 1:46 p.m. (2018-04-26 13:46:01 UTC) #4
Manish Jethani
Patch Set 5: Rebase
May 23, 2018, 4:18 a.m. (2018-05-23 04:18:40 UTC) #5
kzar
https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js File lib/snippets.js (right): https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js#newcode174 lib/snippets.js:174: new Function("exports", library)(imports); If I got it right, `compileScript` ...
July 10, 2018, 2:35 p.m. (2018-07-10 14:35:15 UTC) #6
Manish Jethani
https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js File lib/snippets.js (right): https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js#newcode174 lib/snippets.js:174: new Function("exports", library)(imports); On 2018/07/10 14:35:15, kzar wrote: > ...
July 12, 2018, 9:48 a.m. (2018-07-12 09:48:32 UTC) #7
kzar
https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js File lib/snippets.js (right): https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js#newcode174 lib/snippets.js:174: new Function("exports", library)(imports); On 2018/07/12 09:48:32, Manish Jethani wrote: ...
July 12, 2018, 10:21 a.m. (2018-07-12 10:21:43 UTC) #8
Manish Jethani
https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js File lib/snippets.js (right): https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js#newcode174 lib/snippets.js:174: new Function("exports", library)(imports); On 2018/07/12 10:21:43, kzar wrote: > ...
July 12, 2018, 11:05 a.m. (2018-07-12 11:05:29 UTC) #9
kzar
LGTM, would you mind also taking a look at `compileScript` Sebastian? https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js File lib/snippets.js (right): ...
July 12, 2018, 11:19 a.m. (2018-07-12 11:19:56 UTC) #10
Manish Jethani
Thanks! I'll wait for Sebastian's feedback. https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js File lib/snippets.js (right): https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js#newcode174 lib/snippets.js:174: new Function("exports", library)(imports); ...
July 12, 2018, 11:35 a.m. (2018-07-12 11:35:16 UTC) #11
Sebastian Noack
Can someone explain to me the concept of libraries, and how/where it will be used ...
July 16, 2018, 4:37 p.m. (2018-07-16 16:37:36 UTC) #12
Sebastian Noack
https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js File lib/snippets.js (right): https://codereview.adblockplus.org/29761612/diff/29787586/lib/snippets.js#newcode174 lib/snippets.js:174: new Function("exports", library)(imports); So we are generating code that ...
July 16, 2018, 7:14 p.m. (2018-07-16 19:14:53 UTC) #13
Manish Jethani
On 2018/07/16 16:37:36, Sebastian Noack wrote: > Can someone explain to me the concept of ...
July 17, 2018, 7:57 p.m. (2018-07-17 19:57:15 UTC) #14
Manish Jethani
https://codereview.adblockplus.org/29761612/diff/29787586/test/snippets.js File test/snippets.js (right): https://codereview.adblockplus.org/29761612/diff/29787586/test/snippets.js#newcode223 test/snippets.js:223: test.equal(expected, actual); On 2018/07/17 19:57:15, Manish Jethani wrote: > ...
July 17, 2018, 8:10 p.m. (2018-07-17 20:10:26 UTC) #15
Manish Jethani
July 18, 2018, 10:42 p.m. (2018-07-18 22:42:50 UTC) #16
It looks like Sebastian won't have time for this.

Since Dave and I are both satisfied with this change, I'll close this now. If we
need to make any improvements, we can still do it before the next release as a
separate issue/patch.

Thanks!

Powered by Google App Engine
This is Rietveld