Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Issue 10344021: Create the JavaScript constructor dynamically. (Closed)

Created:
8 years, 7 months ago by floitsch
Modified:
8 years, 7 months ago
Reviewers:
ngeoffray, kasperl
CC:
reviews_dartlang.org, ngeoffray
Visibility:
Public.

Description

Create the JavaScript constructor dynamically. Committed: https://code.google.com/p/dart/source/detail?r=7376

Patch Set 1 #

Patch Set 2 : Fix test. #

Patch Set 3 : Test. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -40 lines) Patch
M frog/tests/leg/class_codegen_test.dart View 1 1 chunk +1 line, -5 lines 0 comments Download
M lib/compiler/implementation/emitter.dart View 1 2 4 chunks +38 lines, -35 lines 5 comments Download
A tests/language/class_codegen_test.dart View 1 2 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
floitsch
8 years, 7 months ago (2012-05-07 09:08:48 UTC) #1
kasperl
LGTM.
8 years, 7 months ago (2012-05-07 09:27:53 UTC) #2
ngeoffray
https://chromiumcodereview.appspot.com/10344021/diff/5001/lib/compiler/implementation/emitter.dart File lib/compiler/implementation/emitter.dart (right): https://chromiumcodereview.appspot.com/10344021/diff/5001/lib/compiler/implementation/emitter.dart#newcode58 lib/compiler/implementation/emitter.dart:58: // The caller can also pass in the constructor ...
8 years, 7 months ago (2012-05-07 09:42:30 UTC) #3
floitsch
https://chromiumcodereview.appspot.com/10344021/diff/5001/lib/compiler/implementation/emitter.dart File lib/compiler/implementation/emitter.dart (right): https://chromiumcodereview.appspot.com/10344021/diff/5001/lib/compiler/implementation/emitter.dart#newcode58 lib/compiler/implementation/emitter.dart:58: // The caller can also pass in the constructor ...
8 years, 7 months ago (2012-05-07 12:42:07 UTC) #4
ngeoffray
8 years, 7 months ago (2012-05-07 12:54:25 UTC) #5
https://chromiumcodereview.appspot.com/10344021/diff/5001/lib/compiler/implem...
File lib/compiler/implementation/emitter.dart (right):

https://chromiumcodereview.appspot.com/10344021/diff/5001/lib/compiler/implem...
lib/compiler/implementation/emitter.dart:72: if (typeof fields == 'function') {
On 2012/05/07 12:42:08, floitsch wrote:
> On 2012/05/07 09:42:30, ngeoffray wrote:
> > Since we control the emission, why do we need to support this?
> 
> If you prefer I can remove the code for now. (it's just 2 lines after all...)

It's fine if you keep it but make sure you'll use it.

Powered by Google App Engine
This is Rietveld 408576698