Index: test/codegen/expect/sunflower/dom.js |
diff --git a/test/codegen/expect/sunflower/dom.js b/test/codegen/expect/sunflower/dom.js |
index accd3b1e5ea0bec03a406ba4626e23aeeb2bd8d0..ca8cd360c9f5d9a5d66edd34d1c59130a8d3cb4c 100644 |
--- a/test/codegen/expect/sunflower/dom.js |
+++ b/test/codegen/expect/sunflower/dom.js |
@@ -4,7 +4,7 @@ var dom; |
class JsName extends core.Object { |
JsName(opts) { |
let name = opts && 'name' in opts ? opts.name : null; |
- this.name = name; |
+ dart.initField(JsName, this, 'name', name); |
} |
} |
class Overload extends core.Object { |
@@ -19,14 +19,14 @@ var dom; |
class RenderingContext extends core.Object {} |
class CanvasDrawingStyles extends core.Object { |
CanvasDrawingStyles() { |
- this.lineWidth = null; |
- this.lineCap = null; |
- this.lineJoin = null; |
- this.miterLimit = null; |
- this.lineDashOffset = null; |
- this.font = null; |
- this.textAlign = null; |
- this.textBaseline = null; |
+ dart.initField(CanvasDrawingStyles, this, 'lineWidth', null); |
+ dart.initField(CanvasDrawingStyles, this, 'lineCap', null); |
+ dart.initField(CanvasDrawingStyles, this, 'lineJoin', null); |
+ dart.initField(CanvasDrawingStyles, this, 'miterLimit', null); |
+ dart.initField(CanvasDrawingStyles, this, 'lineDashOffset', null); |
+ dart.initField(CanvasDrawingStyles, this, 'font', null); |
+ dart.initField(CanvasDrawingStyles, this, 'textAlign', null); |
+ dart.initField(CanvasDrawingStyles, this, 'textBaseline', null); |
} |
} |
class CanvasPathMethods extends core.Object {} |