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

Issue 29543756: Noissue - fix generation of a new instance creation of a class without subclass differentiator (Closed)

Created:
Sept. 13, 2017, 4:38 p.m. by sergei
Modified:
Sept. 19, 2017, 10:13 a.m.
Reviewers:
hub, Wladimir Palant
Base URL:
https://github.com/adblockplus/adblockpluscore.git
Visibility:
Public.

Description

If a class has no subclass differentiator then instead of creation of a new wrapping JS object, namely calling of `new exports.MyClass(pointer)`, there was the call `exports.MyClass(pointer)`. Review: https://codereview.adblockplus.org/29543756/

Patch Set 1 #

Total comments: 3

Patch Set 2 : remove fromPointer when there is no subclass differentiator #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -8 lines) Patch
M compiled/bindings/generator.cpp View 1 2 chunks +1 line, -8 lines 1 comment Download

Messages

Total messages: 4
sergei
https://codereview.adblockplus.org/29543756/diff/29543757/compiled/bindings/generator.cpp File compiled/bindings/generator.cpp (right): https://codereview.adblockplus.org/29543756/diff/29543757/compiled/bindings/generator.cpp#newcode260 compiled/bindings/generator.cpp:260: result += " result = exports." + cls->name + ...
Sept. 13, 2017, 5:09 p.m. (2017-09-13 17:09:10 UTC) #1
Wladimir Palant
https://codereview.adblockplus.org/29543756/diff/29543757/compiled/bindings/generator.cpp File compiled/bindings/generator.cpp (right): https://codereview.adblockplus.org/29543756/diff/29543757/compiled/bindings/generator.cpp#newcode260 compiled/bindings/generator.cpp:260: result += " result = exports." + cls->name + ...
Sept. 19, 2017, 8:51 a.m. (2017-09-19 08:51:48 UTC) #2
sergei
https://codereview.adblockplus.org/29543756/diff/29543757/compiled/bindings/generator.cpp File compiled/bindings/generator.cpp (right): https://codereview.adblockplus.org/29543756/diff/29543757/compiled/bindings/generator.cpp#newcode260 compiled/bindings/generator.cpp:260: result += " result = exports." + cls->name + ...
Sept. 19, 2017, 9:14 a.m. (2017-09-19 09:14:35 UTC) #3
Wladimir Palant
Sept. 19, 2017, 9:56 a.m. (2017-09-19 09:56:30 UTC) #4
LGTM

https://codereview.adblockplus.org/29543756/diff/29549577/compiled/bindings/g...
File compiled/bindings/generator.cpp (left):

https://codereview.adblockplus.org/29543756/diff/29549577/compiled/bindings/g...
compiled/bindings/generator.cpp:458: }
Having this method here for consistency won't really hurt, but removing it is
fine with me - it's not really used anywhere.

Powered by Google App Engine
This is Rietveld